updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / dseq / PKGBUILD
blob879b2c44b2ffd9de0aa9d97b403eae655bf9f4de
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 pkgname=dseq
4 pkgver=0.3.2b
5 pkgrel=2
6 pkgdesc="Desfonema Sequencer is a tracker-inspired MIDI sequencer."
7 arch=(i686 x86_64)
8 url="http://www.desfonema.com.ar/software.html"
9 license=('GPL')
10 depends=('pygtk' 'alsa-lib')
11 makedepends=('python2-distribute')
12 install="$pkgname.install"
13 source=("http://www.desfonema.com.ar/$pkgname/$pkgname-$pkgver.tar.bz2"
14         "$pkgname.desktop")
15 md5sums=('39a7eadb63370fd53a60c977cf38d3a6'
16          'eb84ee3fc967fbf2d84c5ffd49a0331f')
18 build() {
19   cd "$srcdir/$pkgname-$pkgver"
21   # python2 fix
22   sed -i "s|\(python\).*|\12|" $pkgname.py
24   python2 setup.py build
27 package() {
28   cd "$srcdir/$pkgname-$pkgver"
30   # libs
31   python2 setup.py install --root="$pkgdir/"
33   # data
34   install -d "$pkgdir/usr/share/$pkgname"
35   install -Dm644 *.py $pkgname.png "$pkgdir/usr/share/$pkgname"
36   cp -a midi "$pkgdir/usr/share/$pkgname"
38   # bin
39   install -d "$pkgdir/usr/bin"
40   cat << EOF >> "$pkgdir/usr/bin/$pkgname"
41 cd /usr/share/$pkgname && python2 $pkgname.py \$@
42 EOF
43   chmod +x "$pkgdir/usr/bin/$pkgname"
45   # docs
46   install -d "$pkgdir/usr/share/doc/$pkgname"
47   install -Dm644 docs/* "$pkgdir/usr/share/doc/$pkgname"
49   # desktop file
50   install -Dm644 "$srcdir/$pkgname.desktop" \
51     "$pkgdir/usr/share/applications/$pkgname.desktop"
53   # icon
54   install -Dm644 "${pkgname}48.png" \
55     "$pkgdir/usr/share/pixmaps/$pkgname.png"
58 # vim:set ts=2 sw=2 et: