diff options
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 12 |
2 files changed, 10 insertions, 5 deletions
@@ -1,11 +1,12 @@ pkgbase = libvtflib-git pkgdesc = Library to handle Valve's Texture Format - pkgver = 1.0.r1.a501ba5 + pkgver = r38.a501ba5 pkgrel = 1 url = https://github.com/panzi/VTFLib arch = any license = GPL makedepends = cmake + makedepends = git depends = libtxc_dxtn source = git+https://github.com/panzi/VTFLib.git md5sums = SKIP @@ -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` } |