summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 40cd14d1cb1b9599064352390cae244cfd854a92 (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
25
26
27
28
29
30
# Maintainer: CodeHz <codehz@outlook.com>
_pkgname=nsroot
pkgname=$_pkgname-git
pkgver=v0.1.3.1.gcda958c
pkgrel=1
pkgdesc='`chroot`, `mount --bind` without privilege'
arch=(x86 x86_64 arm armv6h armv7h aarch64)
url="https://github.com/codehz/nsroot"
license=('GPL3')
makedepends=('cmake>3')
source=("git+https://github.com/codehz/nsroot")
md5sums=(SKIP)

pkgver() {
  cd "$srcdir"/$_pkgname
  git describe --always | sed 's|-|.|g'
}

build() {
  cd "$_pkgname"
  mkdir -p build
  cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  make
}

package() {
  cd "$_pkgname"/build
  make DESTDIR="$pkgdir/" install
}