summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 831801db4ed96fcf05d022a0036adb8c489b5904 (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
38
# Maintainer: Chris Berkhout <chris@chrisberkhout.com>
pkgname=paps-git
pkgver=r86.37e6ca1
pkgrel=1
pkgdesc='UTF-8 to PostScript converter using Pango'
arch=('x86_64')
url='https://github.com/dov/paps'
license=('LGPL2')
depends=('pango')
makedepends=('git' 'glib2' 'intltool')
conflicts=('paps')
provides=('paps')
source=('git+https://github.com/dov/paps.git')
sha256sums=('SKIP')

_gitrepo=${pkgname%-git}

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

build() {
  cd "${srcdir}/${_gitrepo}"
  ./autogen.sh --prefix=/usr
  make
}

check() {
  cd "${srcdir}/${_gitrepo}"
  make check
}

package() {
  cd "${srcdir}/${_gitrepo}"
  make install DESTDIR="$pkgdir"
  install -D -m 644 COPYING.LIB "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}