blob: 2326d71dc6c659683ea25a55dc0491d179e81740 (
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
|
# Maintainer: Essem <smswessem@gmail.com>
pkgname=furnace-git
pkgver=v0.5.6.r26.ga9b2102
pkgrel=1
pkgdesc="A multi-system chiptune tracker compatible with DefleMask modules"
url="https://github.com/tildearrow/furnace"
depends=('sdl2' 'zlib' 'libsndfile' 'fmt' 'hicolor-icon-theme')
makedepends=('git' 'cmake')
provides=('furnace')
arch=('x86_64')
license=('GPL')
source=(
"git+https://github.com/tildearrow/furnace.git"
"git+https://github.com/nukeykt/Nuked-OPN2.git"
"git+https://github.com/ocornut/imgui.git"
)
sha256sums=('SKIP' 'SKIP' 'SKIP')
pkgver() {
cd "${pkgname%-git}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$srcdir/${pkgname%-git}"
git submodule init
git config submodule.extern/Nuked-OPN2.url "$srcdir/Nuked-OPN2"
git config submodule.extern/imgui.url "$srcdir/imgui"
git submodule update
}
build() {
cd "$srcdir/${pkgname%-git}"
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DSYSTEM_FMT=ON -DSYSTEM_ZLIB=ON -DSYSTEM_LIBSNDFILE=ON -DSYSTEM_SDL2=ON -DWITH_JACK=OFF ..
cmake --build .
}
package() {
cd "$srcdir/${pkgname%-git}"
DESTDIR="$pkgdir" cmake --install build
}
|