blob: 90eabe01a30748e9c6e624699733d217f553945a (
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
53
54
55
56
57
58
59
60
61
62
63
|
# Maintainer: muzhed <chustokes@126.com>
pkgname=din
pkgver=26
pkgrel=1
pkgdesc="A sound synthesizer and musical instrument."
arch=("i686" "x86_64")
url="http://dinisnoise.org/"
license=('GPL2')
depends=('jack' 'libgl' 'sdl' 'tcl')
makedepends=('boost' 'subversion')
install=$pkgname.install
source=('svn+svn://jagernot.xyz/home/svn/din/trunk'
din.patch
din.png
din.desktop)
md5sums=('SKIP'
'1135196ec010ddcb26b4539d19ae26e8'
'50ca4dc107eaa0d5b6a1efe21c469bd7'
'e38840354b0f197079e6bbeda03c8613')
build() {
cd "$srcdir"/trunk
patch -p1 < ../din.patch
./configure CXXFLAGS=-O3 CFLAGS=-O3
make
}
package() {
cd "$srcdir"/trunk
install -Dm755 src/din "$pkgdir/usr/lib/din/din"
cp -r "src/factory" "$pkgdir/usr/lib/din"
ln -s "/usr/lib/din/factory" "$pkgdir/usr/lib/din/user"
# install exec script
mkdir -p "$pkgdir/usr/bin"
cat > "$pkgdir/usr/bin/din" <<EOF
#!/bin/sh
DIN_HOME_DIR="\${HOME}/.config/din"
DIN_INSTALL_DIR="/usr/lib/din"
mkdir -p "\${DIN_HOME_DIR}"
# copy files so that user could save settings
cp -rn "\${DIN_INSTALL_DIR}/factory" "\${DIN_HOME_DIR}"
cp -rn "\${DIN_INSTALL_DIR}/din" "\${DIN_HOME_DIR}"
cd "\${DIN_HOME_DIR}"
exec ./din "\$@"
EOF
chmod +x "$pkgdir/usr/bin/din"
# install license
install -Dm644 COPYING "$pkgdir/usr/share/licenses/din/LICENSE"
# install icon and desktop file
cd "$srcdir"
install -Dm644 $pkgname.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
install -Dm644 $pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
}
|