blob: 034f3266e74d73fc433218246637d884bbadb292 (
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>
_pkgname=setbfree
pkgname="${_pkgname}-git"
pkgver=0.8.7.r748.ad04112
pkgrel=1
pkgdesc="A DSP tonewheel organ emulator"
arch=('i686' 'x86_64')
url="http://setbfree.org/"
license=('GPL')
depends=('alsa-lib' 'ftgl' 'hicolor-icon-theme' 'jack' 'liblo' 'lv2' 'pango'
'ttf-bitstream-vera' 'xorg-xmessage')
makedepends=('libicns')
conflicts=("${_pkgname}")
provides=("${_pkgname}")
source=("$_pkgname::git+https://github.com/pantherb/setBfree.git"
'setbfree.desktop'
'x42-whirl.desktop')
md5sums=('SKIP'
'5c28e2aeea63e9274394ac2b23ccb43d'
'3b263ac1f57d04e7d4a46c72ac18b905')
pkgver() {
cd "${srcdir}/${_pkgname}"
local ver="$(grep EXPORTED_VERSION= Makefile | cut -f 2 -d =)"
echo "$ver.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${_pkgname}"
make \
PREFIX="/usr" \
INSTALL_EXTRA_LV2=yes \
ENABLE_ALSA=yes \
OVERDRIVEJACK=yes \
FONTFILE=/usr/share/fonts/TTF/VeraBd.ttf
icns2png -x -o img img/setBfree.icns
icns2png -x -o img img/x42-whirl.icns
}
package() {
cd "${srcdir}/${_pkgname}"
make \
DESTDIR="$pkgdir" \
PREFIX="/usr" \
INSTALL_EXTRA_LV2=yes \
ENABLE_ALSA=yes \
OVERDRIVEJACK=yes \
FONTFILE=/usr/share/fonts/TTF/VeraBd.ttf \
install
# desktop files
install -Dm644 "${srcdir}/setbfree.desktop" -t "$pkgdir/usr/share/applications"
install -Dm644 "${srcdir}/x42-whirl.desktop" -t "$pkgdir/usr/share/applications"
# icons
for size in '32x32' '128x128' '256x256'; do
install -d -m755 "$pkgdir/usr/share/icons/hicolor/$size/apps"
for app in 'setBfree' 'x42-whirl'; do
icon="img/${app}_${size}x32.png"
if [ -e "$icon" ]; then
install -m644 "$icon" \
"$pkgdir/usr/share/icons/hicolor/$size/apps/$app.png"
fi
done
done
# man pages
install -Dm644 doc/*.1 -t "$pkgdir/usr/share/man/man1"
# docs
install -Dm644 AUTHORS ChangeLog README.md doc/*.png cfg/KB3X42_1.K25 \
-t "$pkgdir/usr/share/doc/$pkgname"
}
# vim:set ts=2 sw=2 et:
|