summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Grapentin2016-10-22 15:28:52 +0200
committerAndreas Grapentin2016-10-22 15:28:52 +0200
commit13a20dfc3a143342182db6312e7a09b625f9fbbd (patch)
tree941126e0a57900d7c26bdb2e8704c48ae9af6ced /PKGBUILD
parentbf87864bde222ad28ca68eebd1e6a3b63afbb524 (diff)
downloadaur-13a20dfc3a143342182db6312e7a09b625f9fbbd.tar.gz
pkgbuild now installs the manpage of vmdebootstrap
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD16
1 files changed, 15 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 9c5c0ca021b..ff285c13017 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Andreas Grapentin <andreas@grapentin.org>
pkgname=vmdebootstrap
pkgver=1.6
-pkgrel=1
+pkgrel=2
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')
@@ -13,9 +13,12 @@ depends=('debootstrap'
'qemu'
'parted'
'multipath-tools'
+ 'python2'
'python2-cliapp'
'distro-info')
+makedepends=('python-sphinx')
+
source=("http://git.liw.fi/cgi-bin/cgit/cgit.cgi/$pkgname/snapshot/$pkgname-$pkgver.tar.gz"
'python_version.patch'
'default_arch.patch'
@@ -35,13 +38,24 @@ prepare() {
patch -p1 < ../fix_path.patch
}
+build() {
+ cd "$pkgname-$pkgver"
+
+ make -C man man
+}
+
package() {
cd "$pkgname-$pkgver"
python2 setup.py install --root="${pkgdir}/" --optimize=1
+
+ mkdir -p ${pkgdir}/usr/share/man/man8/
+ cp man/_build/man/vmdebootstrap.8 ${pkgdir}/usr/share/man/man8/
+
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