diff options
author | KokaKiwi | 2020-11-30 13:12:58 +0100 |
---|---|---|
committer | KokaKiwi | 2020-11-30 13:12:58 +0100 |
commit | 007e7006e7153dd2d7c2dc7c79f92845c1d1d3da (patch) | |
tree | 05b0dc6e30999d30fe7de30cdc1408e14ee8ef0a | |
download | aur-007e7006e7153dd2d7c2dc7c79f92845c1d1d3da.tar.gz |
Initial commit.
-rw-r--r-- | .SRCINFO | 27 | ||||
-rw-r--r-- | PKGBUILD | 49 |
2 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d10092db413b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,27 @@ +pkgbase = dwarfs-git + pkgdesc = A fast high compression read-only file system + pkgver = r128.cd42e21 + pkgrel = 1 + url = https://github.com/mhx/dwarfs + arch = x86_64 + license = GPL3 + makedepends = git + makedepends = cmake + makedepends = sparsehash + makedepends = ruby-ronn + depends = fuse3 + depends = openssl + depends = boost-libs + depends = lz4 + depends = xz + depends = zstd + depends = libunwind + depends = google-glog + depends = fmt + depends = gflags + depends = double-conversion + source = dwarfs-git::git+https://github.com/mhx/dwarfs.git + sha256sums = SKIP + +pkgname = dwarfs-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8fbdd4c62ab4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: KokaKiwi <kokakiwi+aur@kokakiwi.net> + +_pkgname=dwarfs +pkgname=${_pkgname}-git +pkgver=r128.cd42e21 +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' + 'lz4' 'xz' 'zstd' + 'libunwind' 'google-glog' 'fmt' 'gflags' 'double-conversion' +) +makedepends=('git' 'cmake' 'sparsehash' 'ruby-ronn') +source=("${pkgname}::git+https://github.com/mhx/dwarfs.git") +sha256sums=('SKIP') + +pkgver() { + cd "${pkgname}" + + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd "${pkgname}" + + git submodule update --init --depth=1 +} + +build() { + make -C "${pkgname}/man" + + cmake -B build -S "${pkgname}" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=None + cmake --build build +} + +package() { + cmake --install build \ + --prefix "${pkgdir}/usr" + + install -Dm0644 "${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |