Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
file-roller-vpk archlinux PKGBUILD
pkgname=file-roller-vpk
pkgver=3.28.0+33+g88d3ac6a
pkgrel=1
pkgdesc="File Roller with Valve Pak (VPK) support"
url="https://https://github.com/linux-source-tools/file-roller-vpk"
arch=(x86_64)
license=(GPL)
depends=(gtk3 libarchive file libnotify zip unzip)
makedepends=(intltool itstool docbook-xsl gnome-common git libnautilus-extension)
optdepends=("p7zip: 7z, arj, exe and encrypted zip files support"
"unrar: better RAR archive support"
"unace: ACE archive support"
"lrzip: lrzip archive support"
"python-vpk: Valve Pak (VPK) support")
groups=(gnome-extra)
provides=(file-roller)
conflicts=(file-roller)
_commit=88d3ac6adb878b5d6fa8ca7633b90e7c79fb0f14
source=("git+https://github.com/linux-source-tools/file-roller-vpk.git#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd $pkgname
git describe --tags | sed "s/-/+/g"
}
prepare() {
cd $pkgname
mkdir -p build
}
build() {
cd $pkgname/build
meson ..
meson configure -Dprefix=/usr
meson configure -Dsysconfdir=/etc
meson configure -Dlocalstatedir=/var
meson configure -Dlibexecdir=/usr/lib/$pkgname
ninja
}
package() {
cd $pkgname/build
DESTDIR="$pkgdir" ninja install
}
pkgname=python-vpk
pkgver=1.1
pkgrel=1
pkgdesc="Python Library and CLI tool for the Valve Pak format"
url="https://pypi.python.org/pypi/vpk"
arch=(any)
license=(MIT)
depends=(python)
makedepends=(python-pip)
source=("https://pypi.python.org/packages/81/ac/ae1b4bb598e4b65acced3ffc45ab877df385a596c0021d3883cc1e566af3/vpk-${pkgver}-py2.py3-none-any.whl")
sha256sums=("39b0889d7ab5b29b826f7e17210a11e00d43ff8cbbd6dee41705cd23581384ac")
package() {
cd "${srcdir}"
PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps "vpk-${pkgver}-py2.py3-none-any.whl"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment