diff options
author | Chocobo1 | 2020-09-17 14:32:24 +0800 |
---|---|---|
committer | Chocobo1 | 2020-09-17 14:32:24 +0800 |
commit | bb7b4ad1ca6fb7be4f4f1378b5ac7f23138ef066 (patch) | |
tree | 3ba61f348ed896676a21e52c85f7478c56accf29 /PKGBUILD | |
download | aur-bb7b4ad1ca6fb7be4f4f1378b5ac7f23138ef066.tar.gz |
newpkg: xmlto-git r85.gb128bdc-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0965a4523bd4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> + +pkgname=xmlto-git +pkgver=r85.gb128bdc +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') +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 +} |