Created
November 26, 2015 08:46
-
-
Save imrehg/5548370432737a82f58c to your computer and use it in GitHub Desktop.
pps-tools package for ArchLinux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Gergely Imreh <[email protected]> | |
pkgname=pps-tools-git | |
pkgver=r17.0deb9c7 | |
pkgrel=1 | |
pkgdesc="User-space tools for LinuxPPS and kernel header" | |
arch=('armv7h') | |
url="https://github.com/ago/pps-tools" | |
license=('GPL2') | |
groups=() | |
depends=() | |
makedepends=('git' 'make' 'gcc') | |
provides=("${pkgname%-git}") | |
conflicts=("${pkgname%-git}") | |
replaces=() | |
backup=() | |
options=() | |
install= | |
source=('git+https://github.com/ago/pps-tools.git') | |
noextract=() | |
md5sums=('SKIP') | |
pkgver() { | |
cd "$srcdir/${pkgname%-git}" | |
# Git, no tags available | |
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | |
} | |
build() { | |
cd "$srcdir/${pkgname%-git}" | |
make | |
} | |
package() { | |
cd "$srcdir/${pkgname%-git}" | |
install -m755 -D ppsctl "${pkgdir}/usr/bin/ppsctl" | |
install -m755 -D ppstest "${pkgdir}/usr/bin/ppstest" | |
install -m755 -D ppswatch "${pkgdir}/usr/bin/ppswatch" | |
install -m644 -D timepps.h "${pkgdir}/usr/include/sys/timepps.h" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment