updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / sunvox / PKGBUILD
blob5d4f7af2a6cfecd497a645162cf684c77bf7813b
1 # Maintainer: Daniel Lopez Monagas <zokeber@archlinux.org.ve>
2 # Contributor: David H. Bronke <whitelynx@gmail.com>
3 pkgname=sunvox
4 pkgver=1.6.4
5 pkgrel=1
6 pkgdesc="SunVox is a small, fast and powerful music sequencer with modular synthesizers"
7 arch=('i686' 'x86_64')
8 url="http://www.warmplace.ru/soft/sunvox/"
9 license=('BSD')
10 depends=('alsa-lib')
11 makedepends=('unzip')
12 install=
13 changelog=
14 source=(http://www.warmplace.ru/soft/sunvox/$pkgname-$pkgver.zip sunvox.desktop sunvox.png)
15 md5sums=('4af10b1a5ac9bbd6d94d1a5227ffabbc'
16                  'fefc4c911470b3e968f6b81399c424c6'
17                  '969c5d8abf72b6a77c46df7b56a119ee')
19 build() {
20         cd "${srcdir}/"
22         install -d ${pkgdir}/{usr/{bin,share/{applications/${pkgname},icons/${pkgname}}},opt/${pkgname}}
24         mv "instruments" "${pkgdir}/opt/$pkgname"  || return 1
25         mv "examples" "${pkgdir}/opt/$pkgname"  || return 1
26         mv "docs" "${pkgdir}/opt/$pkgname"  || return 1
27         
28         install -Dm755 ${pkgname}.png "${pkgdir}/usr/share/icons/${pkgname}/"  || return 1
29         install -Dm755 ${pkgname}.desktop "${pkgdir}/usr/share/applications/"  || return 1
31         if [ "$CARCH" = "x86_64" ]; then
32                 install -Dm755 "${pkgname}/linux_x86_64/$pkgname" "${pkgdir}/opt/$pkgname"   || return 1
33                 install -Dm644 "${pkgname}/linux_x86_64/sunvox_config.ini" "${pkgdir}/opt/$pkgname"  || return 1
34         else
35                 install -Dm755 "${pkgname}/linux_x86/$pkgname" "${pkgdir}/opt/$pkgname"  || return 1
36                 install -Dm644 "${pkgname}/linux_x86/sunvox_config.ini" "${pkgdir}/opt/$pkgname"  || return 1
37         fi
39         ln -s /opt/$pkgname/$pkgname "${pkgdir}/usr/bin/$pkgname" || return 1
43 # vim:set ts=2 sw=2 et: