summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1eeb359fb940121619b27b8ab09f5213d76568ed (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
# Maintainer: Kohei Morita <mrtc0@ssrf.in>
pkgbase=haconiwa
pkgname=haconiwa-git
pkgver=v0.10.2
pkgrel=1
pkgdesc="MRuby on Container / A Linux container runtime using mruby DSL for configuration, control and hooks http://haconiwa.mruby.org/"
arch=('x86_64')
url="https://github.com/haconiwa/haconiwa"
license=('GPL3')
depends=('libcgroup' 'criu' 'oniguruma')
makedepends=('git')
conflicts=("${pkgname%-git}")
source=('haconiwa-git::git+https://github.com/haconiwa/haconiwa')
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/${pkgname}"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir/${pkgname}"
  make
}

package() {
  cd "$srcdir/${pkgname}"
  make PREFIX="${pkgdir}/usr/" install
}