summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0ba6d02c076217b1b92fac51856dd44f3f30c064 (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
40
41
42
43
44
45
46
47
48
49
50
51
# Maintainer: Rui Shi <1229408499@qq.com>
# Contributor: Linxuan Chen <me@black-desk.cn>
pkgname=linglong-box-git
pkgver=1.3.3.15.1.r12.gc633517
pkgrel=1
epoch=0
pkgdesc='Container application toolkit of deepin'
arch=('x86_64')
conflicts=('linglong-box')
provides=('linglong-box')
url='https://github.com/linuxdeepin/linglong-box'
license=('LGPL3')
depends=(
	'libseccomp'
	'glibc'
	'gcc-libs'
)
makedepends=(
	'git'
	'yaml-cpp'
	'gtest'
	'cmake'
)
source=("linglong-box::git+https://github.com/linuxdeepin/linglong-box.git#branch=release/1.3")
md5sums=('SKIP')

pkgver() {
        cd linglong-box
        git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
        cd linglong-box
        mkdir -vp build
}

build() {
        cd linglong-box/build
        cmake -DCMAKE_INSTALL_PREFIX=/usr \
	      -DBUILD_STATIC=off \
	      -DCMAKE_BUILD_TYPE=Release \
	      -DCMAKE_INSTALL_SYSCONFDIR=/etc \
	      -DCMAKE_INSTALL_LIBEXECDIR=/usr/lib \
	      ..
        cmake --build . -j$(nproc)
}

package() {
        cd linglong-box/build
        env DESTDIR="$pkgdir/" cmake --install .
}