summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d935e516c5cad599e4e69a53a89be8f7cd8a73ae (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
pkgname='linux-user-chroot'
pkgver='2013.1'
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=('git')
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}
}