PKGBUILDs/community/lxcfs/PKGBUILD

45 lines
1.5 KiB
Bash
Raw Normal View History

2021-12-26 22:58:52 +00:00
# Maintainer: Sergej Pupykin <arch+pub@sergej.pp.ru>
# Maintainer: Christian Brauner <christianvanbrauner@gmail.com>
# Maintainer: Morten Linderud <foxboron@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - add -D_FILE_OFFSET_BITS=64 to CPPFLAGS
pkgname=lxcfs
2022-08-02 23:50:25 +00:00
pkgver=5.0.1
2022-08-03 23:41:09 +00:00
pkgrel=2
2021-12-26 22:58:52 +00:00
pkgdesc="FUSE filesystem for LXC"
arch=(x86_64)
url="https://linuxcontainers.org/"
license=('GPL')
depends=('lxc' 'libnih' 'fuse3' 'dbus-glib')
2022-08-02 23:50:25 +00:00
makedepends=('help2man' 'meson' 'python-jinja' 'systemd')
2022-02-03 18:27:24 +00:00
options=('emptydirs' 'debug')
2021-12-26 22:58:52 +00:00
source=("https://linuxcontainers.org/downloads/lxcfs/lxcfs-$pkgver.tar.gz"{,.asc}
2022-08-03 23:41:09 +00:00
"lxcfs-5.0.1-fix-reinitialization-with-fuse3.patch::https://bugs.archlinux.org/task/75498?getfile=21663"
2022-03-13 17:03:26 +00:00
"lxcfs.service")
2021-12-26 22:58:52 +00:00
validpgpkeys=('602F567663E593BCBD14F338C638974D64792D67')
2022-08-02 23:50:25 +00:00
sha256sums=('1951b03155000311c7a2df17760554f1bb081015cfd0996304ac243b8e93dc81'
2021-12-26 22:58:52 +00:00
'SKIP'
2022-08-03 23:41:09 +00:00
'c2d7b4cd2abeffffb309a6e8277eb201b7f1a663ec6caee939d352dc0f435e59'
2021-12-26 22:58:52 +00:00
'3549e83ebbd6ec5934be0c3137b0dbb1101cec098bc49d135fea29f733b9e2a1')
2022-08-03 23:41:09 +00:00
prepare() {
cd "$pkgname-$pkgver"
patch -p1 <../lxcfs-5.0.1-fix-reinitialization-with-fuse3.patch
}
2021-12-26 22:58:52 +00:00
build() {
2022-03-13 17:03:26 +00:00
cd "$pkgname-$pkgver"
2021-12-26 22:58:52 +00:00
CPPFLAGS+=" -D_FILE_OFFSET_BITS=64"
2022-03-13 17:03:26 +00:00
arch-meson ../build
meson compile -C ../build
2021-12-26 22:58:52 +00:00
}
package() {
2022-03-13 17:03:26 +00:00
cd "$pkgname-$pkgver"
DESTDIR="$pkgdir" meson install -C ../build
2021-12-26 22:58:52 +00:00
install -dm0755 "$pkgdir"/var/lib/lxcfs
install -Dm0644 "$srcdir"/lxcfs.service "$pkgdir"/usr/lib/systemd/system/lxcfs.service
}