summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5b6cb1863ecc5dd608fc8d9def092b2ac0780797 (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
# Maintainer: Jose Riha <jose1711 gmail com>

pkgname=txt2pdbdoc-git
_pkgname=txt2pdbdoc
pkgver=r65.80052af
pkgrel=1
pkgdesc="Text to PalmOS Doc file conversion program"
arch=('i686' 'x86_64')
url="https://github.com/paul-j-lucas/txt2pdbdoc"
license=('GPL-2.0')
depends=('perl')
source=("git://github.com/paul-j-lucas/txt2pdbdoc")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/${_pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  }

build() {
  cd $srcdir/$_pkgname
  autoreconf -fiv
  ./configure --prefix=/usr
  make
}

package() {
  cd $srcdir/$_pkgname
  make DESTDIR=$pkgdir install
}