summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5e3974780221e82ebbed7b51df7fc491c8d590ab (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
# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch>

pkgname=pnputils-git
pkgver=a
pkgrel=1
pkgdesc="PNP utils"
arch=('i686' 'x86_64')
url='http://git.debian.org/?p=collab-maint/pnputils.git'
license=('GPL')
makedepends=('git')
source=('git+https://gitlab.com/swiftgeek/pnputils.git')
md5sums=('SKIP')
conflicts=('pnputils')
provides=("pnputils=${pkgver%+*}")

pkgver() {
  cd "$srcdir/pnputils"
  git describe --long --tags | sed 's#.*/##; s/\([^-]*-g\)/r\1/; s/-/./g'
}

build() {
  cd "$srcdir/pnputils"
  make
}

package() {
  cd "$srcdir/pnputils"
  DESTDIR="$pkgdir" make install prefix=/usr sbindir=/usr/bin
}