summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 23418da6386cf35098fec4ab12df94baf259f933 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Submitter: andre.laszlo
# Maintainer: jooch
# Contributors: Florian Dejonckheere <florian@floriandejonckheere.be>, Jooch <jooch (at) gmx (dot) com>

pkgname=live-usb-install
pkgver=2.5.11
pkgrel=1
pkgdesc="LiveUSB Install - Create bootable usb sticks from a wide range of different Linux distributions"
url="http://live.learnfree.eu"
license=('GPL')
arch=('i686' 'x86_64')
source=('http://downloads.sourceforge.net/project/liveusbinstall/live-usb-install-2.5.11.tar.gz'
	'live-usb-install.desktop')
md5sums=('7d7d9811bd3e5d72d1e04f3855ef0c3c'
'3c0c278b60d2f6fe8887a94198b1796f')
depends=('python2'
	'pygtk'
	'libglade'
	'syslinux'
	'wget'
	'p7zip'
	'mtools'
	'unrar'
	'parted'
	'gksu'
	'python2-dbus')
optdepends=('python-libtorrent: needed for downloading some distributions')
conflicts=('live-usb-install<2.5.11')
install=live-usb-install.install

package(){
	cd ${srcdir}/${pkgname}

	# Python2 hack
	sed -i 's!#\!/usr/bin/env python!#\!/usr/bin/env python2!g' live-usb-install.py

	mkdir -p ${pkgdir}/usr/share/{${pkgname},pixmaps,applications}
	
	install -Dm644 appversion.py\
		asubprocess.py\
		live-usb-install.py\
		live-usb-install.glade\
		logo.png\
			${pkgdir}/usr/share/${pkgname}
	cp -r presets\
		pyudev\
		locale\
		syslinux\
		templates\
		wingrub\
			${pkgdir}/usr/share/${pkgname}
	install -Dm644 logo.png ${pkgdir}/usr/share/pixmaps/${pkgname}.png

	install -Dm644 ${srcdir}/live-usb-install.desktop ${pkgdir}/usr/share/applications/
}