summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e31613a2bba47b806c6f0f745ba0c335603bce7d (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
# Maintainer: Mike Swanson <mikeonthecomputer@gmail.com>

pkgname=pps-tools-git
pkgver=1.0.r1.c746f3a
pkgrel=1
pkgdesc="LinuxPPS user-space tools"
arch=('aarch64' 'armv7h' 'i686' 'x86_64')
url="http://linuxpps.org/"
license=('GPL2')
provides=('pps-tools')
conflicts=('pps-tools')
makedepends=('git')
source=("git+https://github.com/ago/pps-tools")
sha512sums=('SKIP')

pkgver() {
  cd "${pkgname%-git}"

  printf %s "$(git describe --tags --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g;s/^v//g')"
}

build() {
  cd "${pkgname%-git}"
  LDLIBS=-lm make
}

package() {
  cd "${pkgname%-git}"

  mkdir -p "$pkgdir/usr/bin" "$pkgdir/usr/include/sys"

  LDLIBS=-lm make DESTDIR="$pkgdir/" install
}