summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2694c5665446d8297afa00512d3382d733f73fa3 (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
# Maintainer: Jon Gjengset <jon@tsp.io>
pkgname=image-bootstrap-git
pkgver=r422.4614f45
pkgrel=1
pkgdesc="Command line tool to generate bootable virtual machine images and write them to a block device"
arch=('any')
url="https://github.com/hartwork/image-bootstrap"
license=('AGPL')
depends=(
	'python2>=2.6.6' 'python2-colorama' 'python2-beautifulsoup4'
	'python2-requests' 'python2-setuptools' 'python2-lxml' 'python2-yaml'
	'gnupg' 'parted'
	
	# aur
	'multipath-tools' # for kpartx
	)
makedepends=('git')
optdepends=(
	'ubuntu-keyring: for generating Ubuntu images'
	'grub: for host-grub2 bootloader'
	'mbr: for host-extlinux bootloader'
	'syslinux: for host-extlinux bootloader'
	'debootstrap: for generating Debian/Ubuntu images'
	'debian-archive-keyring: for generating Debian/Ubuntu images'
	)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
options=(!emptydirs)
source=('git+https://github.com/hartwork/image-bootstrap.git')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
	cd "$srcdir/${pkgname%-git}"
}

package() {
	cd "$srcdir/${pkgname%-git}"
	python2 setup.py install --root="$pkgdir/" --optimize=1
}