1 # Contributor: ugaciaka <ugaciaka@gmail.com>
2 # Thank's Imanol Celaya <ilcra1989@gmail.com> for arch x86
8 pkgdesc="4L: LaCie LightScribe Labeler for Linux"
10 url="http://www.lacie.com/products/product.htm?pid=10803"
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')
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