summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4b71cdc315042af991ebdca66f73cb8f1d49c787 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: Giovanni Harting <539@idlegandalf.com>

pkgname=unvpk-git
pkgver=r108.1f1f44f
pkgrel=2
pkgdesc='Extract Valve VPK archives'
arch=(x86_64)
url='https://github.com/panzi/unvpk'
license=(LGPL-2.1-or-later)
depends=(glibc gcc-libs fuse boost-libs)
makedepends=(git cmake boost)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+$url.git")
b2sums=('SKIP')

pkgver() {
	cd ${pkgname%-git}
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cmake -B build -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev -DCMAKE_BUILD_TYPE='None' -S "unvpk"
	make -C build
}

package() {
	make -C build DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et