Skip to content

Instantly share code, notes, and snippets.

@niobium93
Created February 15, 2022 07:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niobium93/ceea02c3a51bf31e2932fa521f92d295 to your computer and use it in GitHub Desktop.
Save niobium93/ceea02c3a51bf31e2932fa521f92d295 to your computer and use it in GitHub Desktop.
yamagi-quake2-vk-git PKGBUILD
pkgname=yamagi-quake2-vk-git
pkgver=1.0.1.r13.g93caaa6
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="Vulkan renderer for yamagi-quake2"
url="http://www.yamagi.org/quake2/"
license=('GPL' 'custom')
depends=('sh' 'yamagi-quake2')
provides=("${pkgname%-*}")
conflicts=("${pkgname%-*}")
source=(${pkgname%-*}::"git+https://github.com/yquake2/ref_vk.git")
sha256sums=('SKIP')
pkgver() {
cd ${pkgname%-*}
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
make -C ${pkgname%-*}
}
package() {
cd ${pkgname%-*}
# renderer library
install -Dm644 release/ref_vk.so "$pkgdir"/usr/lib/yamagi-quake2/ref_vk.so
# doc
install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.md
# license
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment