PKGBUILDs/community/lxcfs/PKGBUILD

48 lines
1.7 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-03-13 17:03:26 +00:00
pkgver=5.0.0
2021-12-26 22:58:52 +00:00
pkgrel=1
pkgdesc="FUSE filesystem for LXC"
arch=(x86_64)
url="https://linuxcontainers.org/"
license=('GPL')
depends=('lxc' 'libnih' 'fuse3' 'dbus-glib')
2022-03-13 17:03:26 +00:00
makedepends=('help2man' 'meson' 'python-jinja')
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-03-13 17:03:26 +00:00
"lxcfs-fix-man.patch::https://patch-diff.githubusercontent.com/raw/lxc/lxcfs/pull/524.patch"
"lxcfs-fix-libdir.patch::https://patch-diff.githubusercontent.com/raw/lxc/lxcfs/pull/527.patch"
"lxcfs.service")
2021-12-26 22:58:52 +00:00
validpgpkeys=('602F567663E593BCBD14F338C638974D64792D67')
2022-03-13 17:03:26 +00:00
sha256sums=('d131b2284437165eabdcdf3c392b96fc95e6ee4f7bf04a7e9999f63997a995ee'
2021-12-26 22:58:52 +00:00
'SKIP'
2022-03-13 17:03:26 +00:00
'5aaab31a34994c4496d7c1fa8d6e885c6c5d68e31f90bb04223da8d62afde5bc'
'ff88ab96041e63aaede9af280d7ee7d847ae6ba8ec98832e2f42267ee5ed46bc'
2021-12-26 22:58:52 +00:00
'3549e83ebbd6ec5934be0c3137b0dbb1101cec098bc49d135fea29f733b9e2a1')
2022-03-13 17:03:26 +00:00
prepare() {
cd "${pkgname}-${pkgver}"
patch -Np1 < "$srcdir/lxcfs-fix-man.patch"
patch -Np1 < "$srcdir/lxcfs-fix-libdir.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
}