updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / grml2usb / PKGBUILD
blobc0c8b020fa256270adc93e4b3ad2868f322faef9
1 # Contributor: Florian Ziegler <zieglerflorian fastmail fm>
2 pkgname=grml2usb
3 pkgver=0.9.34
4 pkgrel=1
5 pkgdesc="Installs one or multiple grml ISOs on an USB device - contains grml2iso"
6 arch=(i686 x86_64)
7 options=(!strip)
8 url="http://grml.org/grml2usb/"
9 license=('GPL2')
10 depends=('python2' 'bash')
11 optdepends=('cdrkit: creating multiboot ISOs with grml2iso')
12 source=(deb_package_${pkgver}_${pkgrel}.deb::http://deb.grml.org/pool/main/g/grml2usb/${pkgname}_${pkgver}_all.deb)
13 noextract=(deb_package_${pkgver}_${pkgrel}.deb)
14 md5sums=('f3945e98ccb7c9051c712948b25844a1')
16 build() {
17   cd "$srcdir" 
19   bsdtar -xf deb_package_${pkgver}_${pkgrel}.deb
20   bsdtar -xf data.tar.gz
22   mkdir -p ${pkgdir}/usr/sbin/
23   mkdir -p ${pkgdir}/usr/share/man/man8
24   mkdir -p ${pkgdir}/usr/share/grml2usb
25   mkdir -p ${pkgdir}/usr/share/grml2usb/grub
26   mkdir -p ${pkgdir}/usr/share/grml2usb/lilo
27   mkdir -p ${pkgdir}/usr/share/grml2usb/mbr
29   install -m 755 usr/sbin/grml2usb ${pkgdir}/usr/sbin/grml2usb
30   install -m 755 usr/sbin/grml2usb-compat ${pkgdir}/usr/sbin/grml2usb-compat 
31   install -m 755 usr/sbin/grml2iso ${pkgdir}/usr/sbin/grml2iso
33   sed -i'' -e '1s/python/python2/' ${pkgdir}/usr/sbin/grml2usb
34   sed -i'' -e '1s/python/python2/' ${pkgdir}/usr/sbin/grml2usb-compat 
36   install -m 644 usr/share/man/man8/grml2usb.8.gz ${pkgdir}/usr/share/man/man8/grml2usb.8.gz
37   install -m 644 usr/share/man/man8/grml2iso.8.gz ${pkgdir}/usr/share/man/man8/grml2iso.8.gz
38   install -m 644 usr/share/man/man8/grml2usb-compat.8.gz ${pkgdir}/usr/share/man/man8/grml2usb-compat.8.gz
40   install -m 644 usr/share/grml2usb/grub/splash.xpm.gz ${pkgdir}/usr/share/grml2usb/grub/splash.xpm.gz
41   install -m 644 usr/share/grml2usb/grub/grml.png ${pkgdir}/usr/share/grml2usb/grub/grml.png
43   install -m 755 usr/share/grml2usb/lilo/lilo.static.amd64 ${pkgdir}/usr/share/grml2usb/lilo/lilo.static.amd64
44   install -m 755 usr/share/grml2usb/lilo/lilo.static.i386 ${pkgdir}/usr/share/grml2usb/lilo/lilo.static.i386
46   install -m 644 usr/share/grml2usb/mbr/mbrmgr ${pkgdir}/usr/share/grml2usb/mbr/mbrmgr
47   install -m 644 usr/share/grml2usb/mbr/mbrldr ${pkgdir}/usr/share/grml2usb/mbr/mbrldr
48