blob: 9f3533227a548eb5361e2576591e60fe06954466 (
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
37
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: encadyma <encadyma.hi at gmail dot com>
_pkgexec=usc-game
pkgname=unnamed-sdvx-clone
_pkgnum='0.4'
pkgver="v$_pkgnum"
pkgrel=2
pkgdesc="A game based on K-Shoot MANIA and Sound Voltex"
arch=('x86_64')
license=('MIT')
url="https://github.com/Drewol/unnamed-sdvx-clone"
depends=(freetype2 libogg libvorbis sdl2 zlib libpng libjpeg libarchive mesa openssl)
makedepends=(cmake git)
conflicts=(unnamed-sdvx-clone-git)
source=(
"$pkgname::git+https://github.com/Drewol/unnamed-sdvx-clone.git#tag=$pkgver"
)
sha256sums=(
"SKIP"
)
prepare() {
cd "$pkgname"
git submodule update --init --recursive
}
build() {
cd "$pkgname"
cmake -DCMAKE_BUILD_TYPE=Release .
make
}
package() {
install -d "$pkgdir/opt/$pkgname"
cp -a "$pkgname/bin/." "$pkgdir/opt/$pkgname"
# chmod 755 the executable
chmod 755 "$pkgdir/opt/$pkgname/$_pkgexec"
# Link the binary to /usr/bin
mkdir -p "$pkgdir/usr/bin"
ln -s "/opt/$pkgname/$_pkgexec" "$pkgdir/usr/bin/$pkgname"
}
|