aboutsummaryrefslogtreecommitdiffstats
path: root/use/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--use/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/use/PKGBUILD b/use/PKGBUILD
new file mode 100644
index 0000000..870facd
--- /dev/null
+++ b/use/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org>
+
+pkgname=use
+pkgver=1.11.3
+pkgrel=1
+pkgdesc='A utility to help casual user install multiple versions of a software package'
+url='http://use.sourceforge.net/'
+arch=('i686' 'x86_64')
+license=('custom:3-clause BSD')
+depends=('glibc')
+makedepends=('gcc' 'glibc' 'make' 'coreutils' 'perl' 'sed')
+source=("https://downloads.sourceforge.net/project/use/Version%20${pkgver}/use.d.tar.gz")
+sha256sums=('aa810494a3b0cb61dc0f6bbeac8d9b68a5c4c01fc06e0d52f5dbe9cce76b4a8d')
+
+
+build() {
+ cd "$srcdir/use.d"
+ ./configure.pl <<EOF
+/etc
+/tmp
+/usr/bin
+/usr/share/man/man1
+EOF
+ sed -i 's:\${INSTALL_:-- "\${DESTDIR}"&:g' Makefile.mk
+ make
+ sed -i 's:/usr/local/:/usr/:g' use.1 use.*sh
+ sed -i 's:/usr/share/use.table:/etc/use.table:g' use.1
+}
+
+package () {
+ cd "$srcdir/use.d"
+ mkdir -p "$pkgdir/etc"
+ mkdir -p "$pkgdir/usr/bin"
+ mkdir -p "$pkgdir/usr/share/man/man1"
+ make install DESTDIR="$pkgdir"
+}
+