summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Grapentin2016-10-21 19:20:06 +0200
committerAndreas Grapentin2016-10-21 19:20:06 +0200
commitbf87864bde222ad28ca68eebd1e6a3b63afbb524 (patch)
treeeff30da2aa0f83260791701e501518874690e0b0 /PKGBUILD
downloadaur-bf87864bde222ad28ca68eebd1e6a3b63afbb524.tar.gz
prepared vmdebootstrap-1.6 for arch, with patches
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9c5c0ca021b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Andreas Grapentin <andreas@grapentin.org>
+pkgname=vmdebootstrap
+pkgver=1.6
+pkgrel=1
+pkgdesc="debootstrap installs a basic Debian system into a directory, for use with chroot(8). vmdeboostrap is a wrapper around it to install Debian into a disk image, which can be used with a virtual machine (such as KVM)."
+arch=('i686' 'x86_64')
+
+url="http://liw.fi/vmdebootstrap/"
+license=('GPL3')
+
+depends=('debootstrap'
+ 'syslinux'
+ 'qemu'
+ 'parted'
+ 'multipath-tools'
+ 'python2-cliapp'
+ 'distro-info')
+
+source=("http://git.liw.fi/cgi-bin/cgit/cgit.cgi/$pkgname/snapshot/$pkgname-$pkgver.tar.gz"
+ 'python_version.patch'
+ 'default_arch.patch'
+ 'fix_path.patch')
+
+md5sums=('90dd5a8aff602273c76644dda166e3e7'
+ '9ec42862d167c76139f453ed9651dd8e'
+ '3c3d9df067faa0d742011ad0943427e9'
+ '806fd64966193e9ae0fb4ab56ab7f3f9')
+
+
+prepare() {
+ cd "$pkgname-$pkgver"
+
+ patch -p1 < ../python_version.patch
+ patch -p1 < ../default_arch.patch
+ patch -p1 < ../fix_path.patch
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ python2 setup.py install --root="${pkgdir}/" --optimize=1
+ mkdir -p ${pkgdir}/usr/share/doc/$pkgname
+ cp COPYING ${pkgdir}/usr/share/doc/$pkgname
+ cp README ${pkgdir}/usr/share/doc/$pkgname
+ mkdir -p ${pkgdir}/usr/share/licenses/$pkgname
+ cd ${pkgdir}/usr/share/licenses/$pkgname
+ ln -s ../../doc/$pkgname/COPING COPYING
+}