summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a2ee773dfda3979301e797441a935aadd9816a7 (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
35
36
37
# Maintainer: Alexis Letessier <alexis dot letessier at gmail dot com>

pkgname=gerty-git
pkgver=e9db8d7
pkgrel=3
pkgdesc="Automation tool for network operation tasks"
depends=('perl-expect' 'perl-net-snmp' 'perl' 'perl-xml-libxml' 'perl-config-any')
optdepends=('perl-dbd-sqlite')
makedepends=('git' 'pandoc')
conflicts=('gerty')
provides=('gerty')
arch=('any')
url="https://github.com/ssinyagin/gerty"
license=('GPL2')
source=("git+https://github.com/ssinyagin/gerty.git")
md5sums=('SKIP')

pkgver() {
  cd ${pkgname%-git}
  git rev-parse --short origin/master
}

build() {
  cd ${pkgname%-git}
  autoreconf
  ./configure --prefix=/usr
  make
  pandoc -s doc/gerty_manpage.markdown -t man | gzip -c > doc/gerty.1.gz
}

package() {
  cd ${pkgname%-git}
  make DESTDIR="$pkgdir/" install
  install -D -m644 doc/gerty.1.gz "$pkgdir/usr/share/man/man1/gerty.1.gz"
}

# vim:set ts=2 sw=2 et: