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
37
38
39
40
|
# Maintainer: kleintux <reg-archlinux AT klein DOT tuxli DOT ch>
_pkgname=OpenMRac
pkgname="${_pkgname,,}-git"
pkgver=r58.667db00
pkgrel=1
pkgdesc='OpenMRac, a split-screen racing game'
arch=('x86_64' 'aarch64')
url="https://github.com/Franticware/${_pkgname}"
license=('BSD')
makedepends=('git' 'sox')
depends=('openmrac-data' 'sdl2' 'sdl2_image' 'openal' 'glm')
#depends=('openmrac-data-git' 'sdl2' 'sdl2_image' 'openal' 'glm')
source=("git+${url}.git")
sha256sums=('SKIP')
conflicts=(${_pkgname})
provides=(${_pkgname})
pkgver() {
cd "${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${_pkgname}/src"
mv Makefile.linux Makefile
}
build() {
cd "${_pkgname}/src"
make
}
package() {
cd "${_pkgname}/src"
install -Dm755 ${_pkgname,,} "${pkgdir}/usr/bin/${_pkgname,,}"
install -Dm644 ${_pkgname,,}.ico "${pkgdir}/usr/share/pixmaps/${_pkgname,,}.ico"
install -Dm644 ${_pkgname,,}.desktop "${pkgdir}/usr/share/applications/${_pkgname,,}.desktop"
install -Dm644 "../LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname,,}/LICENSE"
}
|