summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ac0439536fd3242ddd2c0afb1b3ad1d58f0d9aef (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
# Maintainer: Stephan Springer <buzo+arch@Lini.de>
# Contributor: Aidan Harris <mail@aidanharris.io>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: eric <eric@archlinux.org>
# Contributor: Manolis Tzanidakis

pkgname=apg
pkgver=2.2.3
pkgrel=5
pkgdesc="Automated Password Generator."
arch=(x86_64)
url="https://github.com/buzo-ffm/$pkgname/"
license=('custom')
depends=('glibc')
source=("$pkgname-$pkgver-$pkgrel.tar.gz::https://github.com/buzo-ffm/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('f2d4285947500afff32a045c0931d2712e814b8f6c0b9d5fa766c71c4a9e58d7')

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
}