
pkgbuild-ocenaudio
By:
ainumortis 
on
Apr 25th, 2014 | syntax:
None | size: 1.18 KB | views:
80 | expires: Never
# Maintainer: Tom Kuther <gimpel@sonnenkinder.org>
pkgname=ocenaudio
pkgver=2.0.4
pkgrel=1
pkgdesc="A cross-platform, easy to use, fast and functional audio editor"
arch=('i686' 'x86_64')
url="http://www.ocenaudio.com.br/"
license=('as-is')
depends=('qt4')
optdepends=()
_myarch=64
[ "${CARCH}" == "i686" ] && _myarch=32
source=(${pkgname}-${pkgver}_${CARCH}.deb::http://www.ocenaudio.com.br/downloads/$pkgname${_myarch}.deb)
_md5sum=e901c636d9ea6029c7f716f1377af760
[ "${CARCH}" == "i686" ] && _md5sum=fd196ad98d8a47344b9268912cbec1e9
md5sums=(${_md5sum})
build() {
bsdtar -xf ${pkgname}-${pkgver}_${CARCH}.deb data.tar.gz
bsdtar -xf data.tar.gz
rm data.tar.gz
cd $srcdir/opt/$pkgname/lib
rm libQt*
}
package() {
cd $srcdir
install -d -m 755 $pkgdir/opt/$pkgname/{lib,bin}
install -d -m 755 $pkgdir/usr/share
install -d -m 755 $pkgdir/usr/bin
install -m 755 opt/$pkgname/bin/$pkgname $pkgdir/opt/$pkgname/bin/
cp -d opt/$pkgname/lib/* $pkgdir/opt/$pkgname/lib/.
cp -dR usr/share/applications $pkgdir/usr/share/.
cp -dR usr/share/icons $pkgdir/usr/share/.
ln -sf /opt/ocenaudio/bin/ocenaudio $pkgdir/usr/bin/ocenaudio
}
# vim:set ts=2 sw=2 et: