blob: 9aeccb1578810a71e1b9c9d3351b38ce60a1c0d3 (
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
29
30
31
32
33
34
35
36
|
# Maintainer: Yamashiro <dev cosmicheron com>
_pkgbase='yamagi-quake2-ref_gl4'
pkgname="${_pkgbase}-git"
pkgdesc='OpenGL 4.6 renderer for yamagi-quake2'
pkgver=r5.29595b0
pkgrel=1
url='https://github.com/yquake2/ref_gl4'
arch=('x86_64')
license=('GPL-2.0-only' 'LicenseRef-custom')
depends=('glibc' 'sdl2' 'yamagi-quake2')
makedepends=('git')
provides=("$_pkgbase")
conflicts=("$_pkgbase")
source=("${_pkgbase}::git+${url}.git")
sha512sums=('SKIP')
pkgver() {
cd "$_pkgbase"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
build() {
make -C "${srcdir}/${_pkgbase}"
}
package() {
# library
install -Dm644 -t "${pkgdir}/usr/lib/yamagi-quake2" "${srcdir}/${_pkgbase}/release/ref_gl4.so"
# doc
install -Dm644 -t "${pkgdir}/usr/share/doc/${_pkgbase}" "${srcdir}/${_pkgbase}/README.md"
# license
install -Dm644 -t "${pkgdir}/usr/share/licenses/${_pkgbase}" "${srcdir}/${_pkgbase}/LICENSE"
}
|