summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8717b8d9827b9772c2b354774f7066e34d19d815 (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
# Maintainer: Chn Tondovsko <chn566@gmail.com>
# Contributor: Bigrush <Tom.harpaz98@gmail.com>

pkgname=nama
pkgver=2.0.6.r0.g75b3809
pkgrel=1
pkgdesc="This tool uses nmcli to easily set static ip addresses"
arch=('any')
url="https://github.com/chn555/nama"
license=('GPLv3')
depends=('bash')
source=("$pkgname::git+https://github.com/chn555/nama.git")

md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  git describe --tags --long | sed -r -e 's,^[^0-9]*,,;s,([^-]*-g),r\1,;s,[-_],.,g'

}

package() {
  cd "$srcdir/$pkgname"
  make DESTDIR="$pkgdir" install
  install -D -m644 LICENSE.md "$pkgdir/usr/share/licenses/nama/LICENSE.md"
}