blob: 4f7b64c655c0da6143303cb1085f00e65705919f (
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
49
50
51
|
# Maintainer: Aftershock9009 <cfsa9009 at gmail dot com>
_pkgname=itgmania
pkgname=$_pkgname-git
pkgver=0.9.0
pkgrel=1
pkgdesc="A fork of stepmania 5.1, improved for the post-ITG community"
provides=('itgmania')
conflicts=('itgmania')
arch=('x86_64')
url="https://www.itgmania.com/"
license=('MIT AND GPL-2.0-or-later AND LGPL-2.0-or-later AND Apache-2.0 AND BSD-3-Clause AND CC-BY-NC-4.0')
depends=('mesa' 'glew' 'glu' 'udev' 'libx11' 'libxext' 'libxtst' 'libxinerama' 'libxrandr'
'alsa-lib' 'libpulse' 'libmad' 'libjpeg' 'libusb-compat' 'libva' 'bzip2'
'gtk3' 'jsoncpp' 'pcre')
makedepends=('git' 'cmake' 'nasm' 'llvm-libs')
source=("git+https://github.com/$_pkgname/$_pkgname.git")
options=("!lto")
b2sums=('SKIP')
pkgver() {
cd $_pkgname
git describe --tags | sed 's/v//g;s/\([^-]*-\)g/r\1/;s/-/./g'
}
prepare() {
cd $srcdir/$_pkgname
git submodule update --init --recursive
}
build() {
cd $_pkgname/Build
cmake \
-DCMAKE_INSTALL_PREFIX=/opt \
-DCMAKE_BUILD_TYPE=Release \
-DWITH_FULL_RELEASE=YES \
-DWITH_FFMPEG_JOBS=$(nproc) \
-Wno-dev \
..
make
}
package() {
cd "$srcdir/$_pkgname"
make -C Build DESTDIR="$pkgdir" install
install -dm755 "$pkgdir/usr/bin"
ln -s /opt/itgmania/itgmania "$pkgdir/usr/bin/itgmania"
install -Dm644 itgmania.desktop "$pkgdir/usr/share/applications/itgmania.desktop"
install -Dm644 Docs/Licenses.txt "$pkgdir/usr/share/licenses/$pkgname/Licenses.txt"
}
|