blob: bbdec931a1ac8abce9b192eb8a027f00a21274e3 (
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
52
53
54
55
56
57
58
59
|
# Maintainer: KokaKiwi <kokakiwi+aur@kokakiwi.net>
_pkgname=dwarfs
pkgname=${_pkgname}-git
pkgver=0.7.0.r0.gb98f08e
pkgrel=1
pkgdesc="A fast high compression read-only file system"
url='https://github.com/mhx/dwarfs'
arch=('x86_64')
license=('GPL3')
depends=(
'fuse3' 'openssl' 'boost-libs' 'jemalloc' 'xxhash'
'lz4' 'xz' 'zstd' 'libarchive' 'brotli'
'libunwind' 'google-glog' 'fmt' 'gflags' 'double-conversion'
# 'python'
)
makedepends=(
'git' 'cmake' 'ruby-ronn'
'boost' 'libevent' 'libdwarf' 'utf8cpp'
)
source=("$pkgname::git+https://github.com/mhx/dwarfs.git")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$pkgname"
git submodule update --init --depth=1
}
build() {
# CMAKE_BUILD_TYPE=None is recommended by
# https://wiki.archlinux.org/title/CMake_package_guidelines#Fixing_the_automatic_optimization_flag_override
cmake -B build -S "$pkgname" \
-W no-dev \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=None \
-D PREFER_SYSTEM_ZSTD=ON \
-D PREFER_SYSTEM_XXHASH=ON \
-D PREFER_SYSTEM_LIBFMT=ON
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build \
mv "$pkgdir/usr/sbin"/* "$pkgdir/usr/bin"
rm -rf "$pkgdir/usr/sbin"
cd "$pkgname"
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}
|