blob: 7f6aa97f7804a633b70417ba16662f4229ea453f (
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
52
|
# Maintainer: Michael Straube <straubem@gmx.de>
# Contributor: Sebastian Wolf <fatmike303 at googlemail dot com>
pkgname=chipmachine
pkgver=1.4b3
pkgrel=2
pkgdesc='Demoscene/Retro Music Player'
arch=('i686' 'x86_64')
url='https://github.com/sasq64/chipmachine'
license=('MIT')
depends=('mpg123' 'glew' 'glfw' 'curl' 'fftw')
makedepends=('cmake' 'vim' 'gendesk')
source=("chipmachine-v1.4b3.tar.gz::https://github.com/sasq64/chipmachine/archive/v1.4b3.tar.gz"
"apone-chipmachine-v1.4b3.tar.gz::https://github.com/sasq64/apone/archive/chipmachine-v1.4b3.tar.gz"
"chipmachine"
"cm")
sha256sums=('b01f123e157d72eee4f4d3784f82b1ab0cc5b4d968067b0af50163321d3f5cb4'
'e411d6515064bb2c952a95aad6bcfc70c1f6b58f40d7874f671ef26185911156'
'55bc037642af379ac1bec1c0b6ab10a1af8d13d5fb98fd92e413984516afcd30'
'75659c95d717851986bbadcf3d3dddb3d72f92720cdd58a97b870e91daf73b5c')
prepare() {
cd $pkgname-$pkgver
gendesk -f -n --pkgname="$pkgname" --pkgdesc="$pkgdesc" --categories="AudioVideo"
ln -sf ../apone-chipmachine-v1.4b3 apone
sed -i '/link_directories(\/usr\/local\/lib)/d' CMakeLists.txt # remove insecure rpath
mkdir -p ../build
}
build() {
cd build
cmake ../$pkgname-$pkgver \
-DCMAKE_BUILD_TYPE=Release
make
}
package() {
cd $pkgname-$pkgver
install -d "$pkgdir"/{usr/bin,opt/chipmachine}
install -m755 ../build/chipmachine "$pkgdir"/opt/chipmachine/
# install -m755 ../build/cm "$pkgdir"/opt/chipmachine/
cp -r data lua "$pkgdir"/opt/chipmachine/
install -m755 ../chipmachine "$pkgdir"/usr/bin/
# install -m755 ../cm "$pkgdir"/usr/bin/
install -Dm644 chipmachine.desktop "$pkgdir"/usr/share/applications/chipmachine.desktop
install -Dm644 note.png "$pkgdir"/usr/share/pixmaps/chipmachine.png
install -Dm644 apone/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
|