summaryrefslogtreecommitdiff
path: root/opt/lxc/MAKEPKG
blob: 80b6b95638eb1ae82635dd9451158ad153cd64a6 (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
#!/bin/mkpkg
# description: Linux container runtime
# url: https://linuxcontainers.org/lxc/

name=lxc
version=7.0.0
release=1
depends=(libcap2 libseccomp)
makedeps=(meson)
source=(https://linuxcontainers.org/downloads/lxc/$name-$version.tar.gz)

sha256sums=(
    "ba0c860626efbac6683f351dd718edb062065e919716d787b89e3d547c5d9493"
)

build() {
    cd $name-$version

    meson setup build \
        --prefix=/usr \
        --libdir=/usr/lib \
        --sysconfdir=/etc \
        --localstatedir=/var \
        -Dbuildtype=release \
        -Dinit-script=[] \
        -Dapparmor=false \
        -Dselinux=false \
        -Dcoverity-build=false \
        -Dexamples=false \
        -Dman=false \
        -Dcapabilities=true \
        -Druntime-path=/run

    meson compile -C build -j$(nproc)
    DESTDIR=$PKG meson install -C build --no-rebuild
}

signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh