summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAdrian Perez2012-04-17 21:49:14 +0300
committerAdrian Perez de Castro2015-06-15 01:21:12 +0200
commit9cd3b316bfebf07d00f51ef44477511a98b05f1d (patch)
tree0ce36bcc422af722410fd351a0451f34fd344a98 /PKGBUILD
downloadaur-9cd3b316bfebf07d00f51ef44477511a98b05f1d.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..454dce25baa
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+pkgname='linux-user-chroot'
+pkgver='3'
+pkgrel='2'
+pkgdesc='setuid helper for making bind mounts and chrooting'
+url='http://git.gnome.org/browse/linux-user-chroot/tree/README'
+arch=('i686' 'x86_64')
+license='GPL'
+depends=('glibc')
+makedepends=('libxslt')
+repo="git://git.gnome.org/${pkgname}"
+
+build () {
+ cd "${srcdir}"
+
+ msg "Connecting to the ${pkgname} Git repository..."
+ if [ -d "${srcdir}/${pkgname}" ] ; then
+ cd "${pkgname}" && git fetch origin
+ msg "The local files are updated."
+ else
+ git clone "${repo}" "${pkgname}"
+ fi
+ cd "${srcdir}/${pkgname}"
+
+ msg2 "Checking out version v${pkgver}"
+ git checkout --force "v${pkgver}"
+ msg "GIT checkout done or server timeout"
+
+ msg2 "Configuring..."
+ ./autogen.sh --prefix=/usr --enable-newnet-helper
+ msg2 "Compiling..."
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}"
+
+ msg2 "Packaging..."
+ make install DESTDIR="${pkgdir}"
+ chmod +s "${pkgdir}/usr/bin"/linux-user-chroot{,-newnet}
+}
+