Skip to content

Commit

Permalink
fuse-unreliablefs-git: add cmake build-dep, use tag-based version, in…
Browse files Browse the repository at this point in the history
…stall LICENSE file
  • Loading branch information
mk-fg committed May 3, 2024
1 parent ee6ebe9 commit 0e95d5a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions fuse-unreliablefs-git/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ arch=(x86_64 aarch64)
url="https://github.com/ligurio/unreliablefs"
license=(MIT)
depends=(fuse)
makedepends=(git)
makedepends=(git cmake)
provides=(fuse-unreliablefs)
conflicts=(fuse-unreliablefs)
source=("${_p}::git+$url")
sha256sums=(SKIP)
b2sums=(SKIP)

pkgver() {
cd $_p
printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
Expand All @@ -25,5 +27,6 @@ build() {

package() {
cd $_p
make -C build DESTDIR="${pkgdir}" install
make -C build DESTDIR="$pkgdir" install
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

0 comments on commit 0e95d5a

Please sign in to comment.