summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 47323eb167f459a3d288a06bb8502b4efa86485d (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
_pkgname=vpk-fuse
pkgname=$_pkgname-git
_binname=vpk_fuse
pkgver=r8.10247a4
pkgrel=1
pkgdesc="FUSE filesystem to read Valve VPK files."
arch=("x86_64")
url="https://github.com/ElementW/$_binname"
depends=("fuse")
source=("git+$url.git")
sha256sums=('SKIP')
license=("GPL3")
provides=( "$_pkgname" )
conflicts=( "$_pkgname" )

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

build() {
  cd "$srcdir/$_binname"
  make
}

package() {
  install -m 755 -D "$srcdir/$_binname/$_binname" "$pkgdir/usr/bin/$_binname"
}