Initial upload: unvpk-git r108.1f1f44f-1

This commit is contained in:
2021-10-22 22:34:58 +02:00
commit b09199ee70
2 changed files with 49 additions and 0 deletions

18
.SRCINFO Normal file
View File

@@ -0,0 +1,18 @@
pkgbase = unvpk-git
pkgdesc = Extract Valve VPK archives
pkgver = r108.1f1f44f
pkgrel = 1
url = https://github.com/panzi/unvpk
arch = x86_64
license = LGPL
makedepends = git
makedepends = cmake
makedepends = boost
depends = fuse
depends = boost-libs
provides = unvpk
conflicts = unvpk
source = unvpk::git+https://github.com/panzi/unvpk.git
b2sums = SKIP
pkgname = unvpk-git

31
PKGBUILD Normal file
View File

@@ -0,0 +1,31 @@
# Maintainer: Giovanni Harting <539@idlegandalf.com>
pkgname=unvpk-git
pkgver=r108.1f1f44f
pkgrel=1
pkgdesc="Extract Valve VPK archives"
arch=('x86_64')
url="https://github.com/panzi/unvpk"
license=('LGPL')
depends=('fuse' 'boost-libs')
makedepends=('git' 'cmake' 'boost')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("unvpk::git+https://github.com/panzi/unvpk.git")
b2sums=('SKIP')
pkgver() {
cd "$srcdir/${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() {
# cd "$srcdir/${pkgname%-git}"
make -C build DESTDIR="$pkgdir" install
}