summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 19c5ba10b7793c0dff5f5837936affa03bcc2c72 (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
31
32
33
34
35
36
37
38
39
# Maintainer: Andy Weidenbaum <archbaum@gmail.com>

pkgname=sandboxctl
pkgver=1.1
pkgrel=1
pkgdesc="Automates the creation and management of chroot-based sandboxes"
arch=('any')
depends=('shtk')
makedepends=('autoconf' 'automake' 'make' 'pkg-config')
url="https://github.com/jmmv/sandboxctl"
license=('BSD')
source=($pkgname-$pkgver.tar.gz::https://github.com/jmmv/$pkgname/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('60bfb575364a77f238e4a373fe11b78b70f87a15f084d53a87efa3d88fe8694a')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  msg2 'Building...'
  #autoreconf -i -s
  ./configure \
    --prefix=/usr \
    --sbindir=/usr/bin \
    --libexecdir=/usr/lib/sandboxctl \
    --sysconfdir=/etc \
    --sharedstatedir=/usr/share/sandboxctl \
    --localstatedir=/var/lib/sandboxctl
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  msg2 'Installing license...'
  install -Dm 644 COPYING -t "$pkgdir/usr/share/licenses/sandboxctl"

  msg2 'Installing...'
  make DESTDIR="$pkgdir" install
  # mv "$pkgdir/usr/tests" "$pkgdir/usr/share/sandboxctl"
}