summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorCameron Katri2020-08-24 12:17:20 -0400
committerCameron Katri2020-08-24 12:17:20 -0400
commit46dceb7e00dca576229472e2e0781a192c7fc081 (patch)
treece0529de5493c03b47dab392521cba5ae1c45b38 /PKGBUILD
downloadaur-xar-tpoechtrage-git.tar.gz
Inital
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9f0f45ba67e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Cameron Katri <katri.cameron@gmail.com>
+pkgname=xar-tpoechtrage-git
+_pkgname=xar
+pkgver=xar.1.6.1.r12.g2b9a4ab
+pkgrel=1
+pkgdesc='eXtensible ARchive format'
+arch=('x86_64')
+url=''https://github.com/tpoechtrager/xar
+license=('custom:BSD')
+conflicts=('xar')
+provides=('xar')
+depends=('libxml2' 'bzip2' 'acl' 'openssl')
+makedepends=('git')
+source=('git+https://github.com/tpoechtrager/xar.git')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd ${srcdir}/${_pkgname}
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd ${srcdir}/${_pkgname}/xar
+ ./autogen.sh --prefix=/usr --with-bzip2 --with-lzma
+ make
+}
+
+package() {
+ cd $srcdir/${_pkgname}/xar
+ make DESTDIR="$pkgdir" install
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}