archrelease: copy trunk to extra-x86_64
[arch-packages.git] / erofs-utils / trunk / PKGBUILD
blob1055f20b888fe14b52b246132f73c0e5850d8bda
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 pkgname=erofs-utils
4 pkgver=1.6
5 pkgrel=1
6 pkgdesc="Userspace utilities for linux-erofs file system"
7 arch=(x86_64)
8 url="https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git"
9 license=(GPL2)
10 depends=(glibc lz4)
11 makedepends=(fuse2 util-linux xz)
12 optdepends=(
13   'fuse2: for erofsfuse'
15 source=($url/snapshot/$pkgname-$pkgver.tar.gz)
16 sha512sums=('1537c5cb60cb70c607b8c00408451f90122fe902d80c9d35dde7b9205588ae3513ddd7cb38d4062e55bb57e37d9b53a668752792e6cba0bc0d78176afed3e502')
17 b2sums=('ad4ce3777c484d485b91f29a97c08499398595d654a4ad63e1cc6a75c176b0476d3af1d7a2bf1ef5f6df996281c1b1bdfdf004be4428c0c168652af68acd83d1')
19 prepare() {
20   cd $pkgname-$pkgver
21   autoreconf -fiv
24 build() {
25   cd $pkgname-$pkgver
26   ./configure --prefix=/usr --enable-fuse --enable-lzma
27   make
30 check() {
31   make -k check -C $pkgname-$pkgver
34 package() {
35   depends+=(
36     util-linux libuuid.so
37     xz liblzma.so
38   )
40   make DESTDIR="$pkgdir/" install -C $pkgname-$pkgver
41   install -vDm 644 $pkgname-$pkgver/{AUTHORS,ChangeLog,README} -t "$pkgdir/usr/share/doc/$pkgname/"