summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6c80a3b45c93c0fa6d5605b29f4455d99a49f06b (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
39
40
41
42
43
44
45
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=xmlto-git
pkgver=r92.g6fa6a0e
pkgrel=1
pkgdesc="Convert XML files to various formats"
arch=('i686' 'x86_64')
url="https://pagure.io/xmlto/"
license=('GPL')
depends=('glibc' 'libxslt')
makedepends=('git' 'docbook-xsl')
provides=("xmlto=$pkgver")
conflicts=('xmlto')
source=("git+https://pagure.io/xmlto.git")
sha256sums=('SKIP')


pkgver() {
  cd "xmlto"

  _rev=$(git rev-list --count --all)
  _hash=$(git rev-parse --short HEAD)
  printf "r%s.g%s" "$_rev" "$_hash"
}

build() {
  cd "xmlto"

  autoreconf -fi
  ./configure \
    --prefix="/usr"
  make
}

check() {
  cd "xmlto"

  make check
}

package() {
  cd "xmlto"

  make DESTDIR="$pkgdir" install
}