summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Tatschner2015-06-17 09:47:01 +0200
committerStefan Tatschner2015-06-17 09:47:01 +0200
commit6738b269ddc7155360e506bb7c9316bd10fa1a18 (patch)
tree18b341fdccd3932ffa6e0e0d9937309086f2a0ac
downloadaur-6738b269ddc7155360e506bb7c9316bd10fa1a18.tar.gz
Initial import
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD33
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..faed887b54d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = can-utils-git
+ pkgdesc = Linux-CAN / SocketCAN user space applications
+ pkgver = r258.8af831f
+ pkgrel = 1
+ url = https://github.com/linux-can/can-utils
+ arch = i686
+ arch = x86_64
+ arch = armv7h
+ license = GPLv2
+ makedepends = git
+ makedepends = libtool
+ provides = can-utils
+ conflicts = can-utils
+ source = git+https://github.com/linux-can/can-utils.git
+ md5sums = SKIP
+
+pkgname = can-utils-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..397ae6ee1f9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Stefan Tatschner <stefan@sevenbyte.org>
+
+pkgname=can-utils-git
+_pkgname=can-utils
+pkgver=r258.8af831f
+pkgrel=1
+pkgdesc="Linux-CAN / SocketCAN user space applications"
+arch=('i686' 'x86_64' 'armv7h')
+url="https://github.com/linux-can/can-utils"
+license=('GPLv2')
+makedepends=(git libtool)
+provides=can-utils
+conflicts=can-utils
+source=("git+https://github.com/linux-can/can-utils.git")
+md5sums=('SKIP')
+
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}"
+ ./autogen.sh
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}"
+ make DESTDIR="$pkgdir/" install
+}