diff options
author | ScrumpyJack <scrumpyjack@me.com> | 2014-11-05 20:44:11 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2014-11-06 00:12:34 +0100 |
commit | f958ddc3070d5e056c62cd01804ee5afa77a7c94 (patch) | |
tree | 4c0d5f68d9ef7eabc9cf609e6a2c1e4ebe52b93a /main/gnats | |
parent | f9c377a6410fc7e77c4b2e77f96e36315a19e34a (diff) | |
download | aports-f958ddc3070d5e056c62cd01804ee5afa77a7c94.tar.bz2 aports-f958ddc3070d5e056c62cd01804ee5afa77a7c94.tar.xz |
main/gnats: Added suid option to APKBUILD, added package function and cleaned install.
Diffstat (limited to 'main/gnats')
-rw-r--r-- | main/gnats/APKBUILD | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/main/gnats/APKBUILD b/main/gnats/APKBUILD index befad8edba..8ada4c07b9 100644 --- a/main/gnats/APKBUILD +++ b/main/gnats/APKBUILD @@ -1,22 +1,24 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=gnats pkgver=4.1.0 -pkgrel=4 +pkgrel=5 pkgdesc="The GNU Bug Tracking System" url="http://www.gnu.org/software/gnats/" arch="all" license="GPL-2" depends="postfix" makedepends="texinfo" -install="gnats.pre-install" +install= source="http://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.gz - $install" + gnats.pre-install" subpackages="$pkgname-doc" +options=suid + build() { cd "$srcdir/$pkgname-$pkgver" # make install needs gnats user - sudo sh $srcdir/$install pre_install || return 1 + sudo sh $srcdir/gnats.pre-install pre_install || return 1 AWK=awk ./configure \ --build=$CBUILD \ @@ -29,6 +31,9 @@ build() { || return 1 make || return 1 +} +package() { + cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir/" install rm -f "$pkgdir"/gnats.el } |