diff options
| author | Yuval Adam <yuval@y3xz.com> | 2016-02-02 00:11:57 +0200 |
|---|---|---|
| committer | Yuval Adam <yuval@y3xz.com> | 2016-02-02 00:11:57 +0200 |
| commit | 3fe06056e9989dd30bcdab43a321e9462a48a969 (patch) | |
| tree | d8e43e92e1619900a0c64896fc7a1648f01d03b2 /aur/rkt/PKGBUILD | |
| parent | 594adca36214d4702a3be0332da2bb2c8dedccc1 (diff) | |
| parent | 4bc4df56272f76eaa61f5e8ad1f3f8dfbefe8a36 (diff) | |
Add 'aur/rkt/' from commit '4bc4df56272f76eaa61f5e8ad1f3f8dfbefe8a36'
git-subtree-dir: aur/rkt
git-subtree-mainline: 594adca36214d4702a3be0332da2bb2c8dedccc1
git-subtree-split: 4bc4df56272f76eaa61f5e8ad1f3f8dfbefe8a36
Diffstat (limited to 'aur/rkt/PKGBUILD')
| -rw-r--r-- | aur/rkt/PKGBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/aur/rkt/PKGBUILD b/aur/rkt/PKGBUILD new file mode 100644 index 0000000..6234489 --- /dev/null +++ b/aur/rkt/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Yuval Adam <yuval at y3xz dot com> PGP-Key: 271386AA2EB7672F +# Contributor: Kenny Rasschaert <kenny dot rasschaert at gmail dot com> PGP-Key: 1F70454121E41419 +# Contributor: Adrián Pérez de Castro <adrian at perezdecastro dor org> PGP-Key: 91C559DBE4C9123B + +pkgname=rkt +pkgver=0.16.0 +pkgrel=1 +pkgdesc="App container runtime" +arch=('x86_64') +url="https://github.com/coreos/rkt" +license=(apache) +depends=('glibc') +makedepends=('cpio' 'go' 'wget' 'squashfs-tools' 'perl-capture-tiny' \ + 'intltool' 'gperf' 'git' 'libseccomp') +provides=('rkt') +replaces=('rocket') +conflicts=('rocket') +source=("https://github.com/coreos/rkt/archive/v${pkgver}.tar.gz") +sha256sums=('a828b1350535a34bff373b9e782b1dd0166d59b1c3d50ace808ded1ccdc4cf55') +install="${pkgname}.install" + +prepare() { + cd "${pkgname}-${pkgver}" + ./autogen.sh +} + +build() { + cd "${pkgname}-${pkgver}" + ./configure --prefix=/usr \ + --with-stage1-flavors=coreos \ + --with-stage1-default-location=/usr/lib/rkt/stage1.aci + make -s +} + +package() { + cd "${pkgname}-${pkgver}" + local unit + for unit in rkt-gc.{timer,service} rkt-metadata.{socket,service} + do + install -Dm644 "dist/init/systemd/${unit}" \ + "${pkgdir}/usr/lib/systemd/system/${unit}" + done + + cd "build-${pkgname}-${pkgver}" + install -Dm755 bin/rkt "$pkgdir/usr/bin/rkt" + install -Dm644 bin/stage1-coreos.aci "$pkgdir/usr/lib/rkt/stage1.aci" +} + +# vim:set ts=2 sw=2 et: |
