summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ba4f038b7cfe60f8febd7342266ce9428e1d40e0 (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: Cyrinux <pkgbuilds AT levis DOT name>
pkgname=nmtrust-git
pkgver=r58.464a5f0
pkgrel=3
pkgdesc="A simple framework for determining network trust with NetworkManager"
arch=('any')
depends=('systemd' 'networkmanager')
url="https://github.com/pigmonkey/nmtrust"
license=('GPL')
makedepends=('git')
provides=('nmtrust')
conflicts=('nmtrust')
source=("git+https://github.com/pigmonkey/nmtrust.git")
sha512sums=('SKIP')

pkgver() {
  cd "${srcdir}/nmtrust"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "${srcdir}/nmtrust"
  install -D -m0755 ${srcdir}/nmtrust/dispatcher/10trust ${pkgdir}/etc/NetworkManager/dispatcher.d/10trust
  install -D -m0755 ${srcdir}/nmtrust/nmtrust ${pkgdir}/usr/bin/nmtrust
  install -D -m0755 ${srcdir}/nmtrust/ttoggle ${pkgdir}/usr/bin/ttoggle
}