updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / bin32-4l / PKGBUILD
blob4dd12bccc32bd2e4727fda04ad2228ea4b396526
1 # Contributor: ugaciaka <ugaciaka@gmail.com>
2 # Thank's Imanol Celaya <ilcra1989@gmail.com> for arch x86
4 pkgname=bin32-4l
5 pkgver=1.0r6
6 _realname=4L-1.0-r6
7 pkgrel=5
8 pkgdesc="4L: LaCie LightScribe Labeler for Linux"
9 arch=('x86_64')
10 url="http://www.lacie.com/products/product.htm?pid=10803"
11 license=('unknown')
12 install=4l.install
13 depends=('lib32-fontconfig' 'lib32-gcc-libs' 'lib32-libxcursor' 'lib32-libxi' 'lib32-libxinerama' 'lib32-libxrandr' 'bin32-lightscribe')
14 makedepends=('rpmextract')
15 conflicts=('4l_x86_64')
16 source=(http://www.lacie.com/download/drivers/$_realname.i586.rpm lightscribe.png lightscribe.desktop)
17 md5sums=('11fc8b2daeaed2b61a567056413bdefd'
18          '582b6cce827c8909115a31c7bc10d6ce' 
19          '48d1af9e30a21f6ec1f8c85151b3a652')
21 build() {
22   cd $startdir/src
23   rpmextract.sh 4L-1.0-r6.i586.rpm 2> /dev/null
24   mkdir -p $startdir/pkg/{opt,usr/bin}
25   cp -R usr/4L $startdir/pkg/opt
26   cd $startdir/pkg/usr/bin
27   ln -s ../../opt/4L/4L-cli 4L-cli
28   ln -s ../../opt/4L/4L-gui 4L-gui
29   find $startdir/pkg/opt -type d -exec chmod 755 {} \;
30   chmod -x $startdir/pkg/opt/4L/*/*
31   chmod +s $startdir/pkg/opt/4L/4L-cli
32   install -D -m644 ${startdir}/lightscribe.png ${pkgdir}/usr/share/pixmaps/lightscribe.png
33   install -D -m644 ${startdir}/lightscribe.desktop ${pkgdir}/usr/share/applications/lightscribe.desktop