updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / nerolinux / PKGBUILD
blob8c1eee99be6424145c81e2e67f7135f3a8f9f917
1 # Maintainer: yugrotavele <yugrotavele at archlinux dot us>
3 pkgname=nerolinux
4 pkgver=4.0.0.0
5 _subver=b
6 pkgrel=4
7 pkgdesc="Nero Burning ROM for linux"
8 url="http://www.nero.com/eng/linux4.html"
9 license=('custom')
10 depends=('gtk2')
11 makedepends=('rpmextract')
12 arch=('i686' 'x86_64')
13 source=(http://www.archlinuxcn.org/download/$pkgname-$pkgver$_subver-x86.rpm)
14 md5sums=('f49f49c588729c2afdbecb546d9b6041')
15 install=nerolinux.install
17 [ "$CARCH" = "x86_64" ] && source=(http://www.archlinuxcn.org/download/$pkgname-$pkgver$_subver-x86_64.rpm)
18 [ "$CARCH" = "x86_64" ] && md5sums=('f5b307c37e5623231e0a042ee43e018c')
20 package() {
21   cd "$pkgdir"
23     if [ "$CARCH" = "x86_64" ]; then
24         rpmextract.sh $srcdir/$pkgname-$pkgver$_subver-x86_64.rpm
25     else
26         rpmextract.sh $srcdir/$pkgname-$pkgver$_subver-x86.rpm
27     fi
29     chmod a+rx -R *
30     find . -type f -exec chmod -x \{\} \;
31     chmod +x usr/bin/{nero,nerocmd,neroexpress}
33     mkdir -p usr/share/licenses/nerolinux
34     mv usr/share/doc/nero/EULA* usr/share/licenses/nerolinux