diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-05-01 16:41:00 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-05-01 16:58:25 +0200 |
commit | c595dbfe097f28f060d47cc9fea033fe3751db7d (patch) | |
tree | 8516faf8994be1c49ab45b0dc695da3245212465 /use/PKGBUILD | |
parent | misc (diff) | |
download | aur-packages-c595dbfe097f28f060d47cc9fea033fe3751db7d.tar.gz aur-packages-c595dbfe097f28f060d47cc9fea033fe3751db7d.tar.bz2 aur-packages-c595dbfe097f28f060d47cc9fea033fe3751db7d.tar.xz |
add use
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'use/PKGBUILD')
-rw-r--r-- | use/PKGBUILD | 37 |
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" +} + |