tree: New package
This commit is contained in:
parent
9e7a71d396
commit
eeb24e00c6
17
tree/Makefile-Uncomment-for-Cygwin.patch
Normal file
17
tree/Makefile-Uncomment-for-Cygwin.patch
Normal file
@ -0,0 +1,17 @@
|
||||
--- tree-1.7.0/Makefile.old 2014-04-19 02:35:39.000000000 +0900
|
||||
+++ tree-1.7.0/Makefile 2014-09-14 02:24:32.800993500 +0900
|
||||
@@ -47,10 +47,10 @@
|
||||
#MANDIR=${prefix}/share/man/man1
|
||||
|
||||
# Uncomment for Cygwin:
|
||||
-#CFLAGS=-O2 -Wall -fomit-frame-pointer -DCYGWIN
|
||||
-#LDFLAGS=-s
|
||||
-#TREE_DEST=tree.exe
|
||||
-#OBJS+=strverscmp.o
|
||||
+CFLAGS=-O2 -Wall -fomit-frame-pointer -DCYGWIN
|
||||
+LDFLAGS=-s
|
||||
+TREE_DEST=tree.exe
|
||||
+OBJS+=strverscmp.o
|
||||
|
||||
# Uncomment for OS X:
|
||||
#CC=cc
|
||||
29
tree/PKGBUILD
Normal file
29
tree/PKGBUILD
Normal file
@ -0,0 +1,29 @@
|
||||
# Maintainer: Alexey Pavlov <Alexpux@gmail.com>
|
||||
|
||||
pkgname=tree
|
||||
pkgver=1.7.0
|
||||
pkgrel=1
|
||||
pkgdesc="A directory listing program displaying a depth indented list of files"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://mama.indstate.edu/users/ice/tree/"
|
||||
license=('GPL')
|
||||
depends=('msys2-runtime')
|
||||
source=(http://mama.indstate.edu/users/ice/${pkgname}/src/${pkgname}-${pkgver}.tgz
|
||||
'Makefile-Uncomment-for-Cygwin.patch')
|
||||
md5sums=('abe3e03e469c542d8e157cdd93f4d8a6'
|
||||
'acbd9b216fce291b89b47a5effefd4ff')
|
||||
|
||||
prepare() {
|
||||
cd ${srcdir}/${pkgname}-${pkgver}
|
||||
patch -p1 -i ${srcdir}/Makefile-Uncomment-for-Cygwin.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${srcdir}/${pkgname}-${pkgver}
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${srcdir}/${pkgname}-${pkgver}
|
||||
make prefix="${pkgdir}/usr" MANDIR="${pkgdir}/usr/share/man/man1" install
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user