Commit f958ddc3 authored by ScrumpyJack's avatar ScrumpyJack Committed by Carlo Landmeter

main/gnats: Added suid option to APKBUILD, added package function and cleaned install.

parent f9c377a6
# 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
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment