summaryrefslogtreecommitdiff
path: root/community/apg/PKGBUILD
blob: 7f66fafb75c63b9b5f9c9d5d28d0acc8705deeda (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
# $Id: PKGBUILD 113911 2014-07-01 09:45:47Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: eric <eric@archlinux.org>
# Contributor: Manolis Tzanidakis

pkgname=apg
pkgver=2.2.3
pkgrel=4
pkgdesc="Automated Password Generator."
arch=(i686 x86_64)
url="http://www.adel.nursat.kz/apg/index.shtml"
license=('custom')
depends=('glibc')
source=(http://www.adel.nursat.kz/apg/download/$pkgname-$pkgver.tar.gz)
md5sums=('3b3fc4f11e90635519fe627c1137c9ac')

build() {
  cd $srcdir/$pkgname-$pkgver
  sed -i 's:^#\(CS_LIBS = -lnsl\)$:\1:' Makefile
  make
}

package() {
  cd $srcdir/$pkgname-$pkgver
  for i in apg apgbfm; do
    install -D -m755 $i $pkgdir/usr/bin/$i
    install -D -m644 doc/man/$i.1 $pkgdir/usr/share/man/man1/$i.1
  done
  install -D -m 644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
}