diff options
author | Dennis Wölfing | 2020-10-31 17:38:17 +0100 |
---|---|---|
committer | Dennis Wölfing | 2020-10-31 17:38:17 +0100 |
commit | ab038d8be983cfc58c74de6d4a7fdbdcb24fed4a (patch) | |
tree | 270643e61e0dc11c762d2797e1de0934ac9cd549 /PKGBUILD | |
download | aur-dxcompress-git.tar.gz |
Initial commit.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d9e4b4f29b96 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Dennis Wölfing <denniswoelfing at gmx dot de> + +pkgname=dxcompress-git +pkgver=1.0.r0.g65946d5 +pkgrel=1 +pkgdesc="Compression and decompression utility" +arch=('x86_64') +url="https://github.com/dennis95/dxcompress" +license=('ISC') +depends=('xz' 'zlib') +makedepends=('git') +# The gzip packages provides uncompress and zcat utilities conflicting with the +# dxcompress implementation. Luckily dxcompress can provide gzip +provides=('dxcompress' 'gzip' 'ncompress') +conflicts=('dxcompress' 'gzip' 'ncompress') +source=('git+https://github.com/dennis95/dxcompress') +sha256sums=('SKIP') + +pkgver() { + cd dxcompress + git describe --long | sed 's/^dxcompress-//;s/-/.r/;s/-/./' +} + +build() { + cd dxcompress + ./autogen.sh + ./configure --prefix=/usr --enable-wrappers=gzip + make +} + +check() { + cd dxcompress + make check +} + +package() { + cd dxcompress + make DESTDIR="$pkgdir" install + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |