summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 92d11d33cd3b1eead30e12f5bb26bfe51b5efbd0 (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
# Maintainer:
# Contributor: Alad Wenter <alad@archlinux.org>

_pkgname="overlayfs-tools"
pkgname="$_pkgname-git"
pkgver=2024.07.r7.gd1636eb
pkgrel=1
pkgdesc="Tools for overlay filesystem"
url="https://github.com/kmxz/overlayfs-tools"
license=('WTFPL')
arch=('x86_64')

depends=(
  'glibc'
)
makedepends=(
  'attr'
  'git'
  'meson'
)

_pkgsrc="$_pkgname"
source=("$_pkgsrc"::"git+$url.git")
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgsrc"
  git describe --long --tags --abbrev=7 \
    | sed -E 's/^[^0-9]*//;s/([^-]*-g)/r\1/;s/-/./g'
}

build() {
  arch-meson "$_pkgsrc" build
  meson compile -C build
}

package() {
  meson install -C build --destdir "$pkgdir"
  mv "$pkgdir/usr/bin/overlay" "$pkgdir/usr/bin/overlayfs"
}