blob: 494afd5bf81b10c49347fb9f4b6fb73845fae884 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=apg
pkgver=2.2.3
pkgrel=4
pkgdesc="Automated Password Generator."
url="http://www.adel.nursat.kz/apg/index.shtml"
arch="all"
license="BSD"
# no check provided by upstream
options="!check"
subpackages="$pkgname-doc"
source="https://launchpad.net/ubuntu/+archive/primary/+files/${pkgname}_${pkgver}.orig.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
prepare() {
default_prepare
}
build() {
cd "$builddir"
sed -i 's:^#\(CS_LIBS = -lnsl\)$:\1:' Makefile
make
}
package() {
cd "$builddir"
for i in apg apgbfm; do
install -D -m755 $i "$pkgdir"/usr/bin/$i
install -D -m644 doc/man/$i.1 "$pkgdir"/usr/man/man1/$i.1
done
install -D -m 644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
sha512sums="d2479dc2cb5d571ddea23d98e9d4ddbdfff874013ff27c00073a3231c4c1d0ee9b75d3983331f3513755b57527766cc5a35e6829cdca15d2e9293dfbc4c2788a apg_2.2.3.orig.tar.gz"
|