Created
February 15, 2022 07:35
-
-
Save niobium93/ceea02c3a51bf31e2932fa521f92d295 to your computer and use it in GitHub Desktop.
yamagi-quake2-vk-git PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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