diff options
author | Viech | 2018-08-26 14:10:32 +0200 |
---|---|---|
committer | Viech | 2018-08-26 14:12:32 +0200 |
commit | 7bc33f1f51314c0e3e27a1153ff890e8f847e9b0 (patch) | |
tree | 8168d9822f843ad6c4ab5647a89b1a71b9e5812f /PKGBUILD | |
download | aur-7bc33f1f51314c0e3e27a1153ff890e8f847e9b0.tar.gz |
Initial package.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f148b0817105 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Viech <viech unvanquished net> + +pkgname=crunch-unv-git +pkgver=daemon.17.g95415e8 +pkgrel=1 +pkgdesc='DXTn texture compression tool. Modified version from Unvanquished Development.' +arch=('x86_64' 'i686') +url='https://github.com/DaemonEngine/crunch' +license=('ZLIB') +makedepends=('git') +depends=('glibc') +source=("crunch::git+https://github.com/DaemonEngine/crunch.git") + +pkgver() { + cd "${srcdir}/crunch/" + local ver="$(git describe --tags --long)" + printf "%s" "${ver//-/.}" +} + +build() { + cd "${srcdir}/crunch/crnlib" + make +} + +package() { + mkdir -p "${pkgdir}/usr/bin" "${pkgdir}/usr/share/licenses/crunch" + + install -m755 "${srcdir}/crunch/crnlib/crunch" "${pkgdir}/usr/bin/crunch" + install -m644 "${srcdir}/crunch/license.txt" "${pkgdir}/usr/share/licenses/crunch/LICENSE" +} + +md5sums=('SKIP') |