summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c74fb473228adcb61171bc57920e1438e168c282 (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
# Maintainer: Zorbatron <46525467+Zorbatron@users.noreply.github.com>

pkgname=nsutils-git
_pkgname=nsutils
pkgver=v0.2.r7.b573702
pkgrel=1

pkgdesc="Nsutils suite includes a number of utilities to list, add/remove tag, and join namespaces"
arch=('x86_64')
url='https://github.com/rd235/nsutils'
license=('GPL-2.0')
makedepends=('make' 'coreutils' 'cmake')
provides=('nsutils')
conflicts=('nsutils')
source=("git+$url")
sha256sums=('SKIP')

pkgver() {
  git -C $_pkgname describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g'
}

build() {
  cd $srcdir/$_pkgname
  mkdir -p build
  cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  make -j $(nproc)
}

package() {
  cd $srcdir/$_pkgname/build
  make DESTDIR="$pkgdir" install
}