summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 603dba4f586eb06ef0e44946b92a7f19c67b1563 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pkgname='linux-user-chroot'
pkgver='2013.1'
pkgrel='3'
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')
source=("https://git.gnome.org/browse/${pkgname}/snapshot/${pkgname}-${pkgver}.tar.gz")
sha1sums=('4d158e691732ad6e6be95203146c448bd64e90a0')

build () {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./autogen.sh --prefix=/usr --enable-newnet-helper
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make install DESTDIR="${pkgdir}"
  chmod +s "${pkgdir}/usr/bin"/linux-user-chroot{,-newnet}
}