diff options
author | HurricanePootis | 2021-06-14 22:59:14 -0500 |
---|---|---|
committer | HurricanePootis | 2021-06-14 22:59:14 -0500 |
commit | b048112a8c11c1b62af20171d8c8ee1157adfc52 (patch) | |
tree | 13e859cdde349b122d584f645643476734d27470 /PKGBUILD | |
parent | 07cc754602d3a5fd3a05581f76468c04821233ab (diff) | |
download | aur-b048112a8c11c1b62af20171d8c8ee1157adfc52.tar.gz |
Better versioning
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -1,20 +1,24 @@ # Maintainer: HurricanePootis <hurricanepootis@protonmail.com> pkgname=libvtflib-git -pkgver=1.0.r1.a501ba5 +pkgver=r38.a501ba5 pkgrel=1 pkgdesc="Library to handle Valve's Texture Format" arch=('any') url="https://github.com/panzi/VTFLib" license=('GPL') depends=('libtxc_dxtn') -makedepends=("git") -makedepends=('cmake') +makedepends=('cmake' 'git') source=("git+https://github.com/panzi/VTFLib.git") md5sums=('SKIP') +pkgver() { +cd $srcdir/VTFLib +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + build() { - cd VTFLib + cd $srcdir/VTFLib cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr" make -j`nproc` } |