summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan2020-06-12 14:44:12 -0400
committerDan2020-06-12 15:32:14 -0400
commitc5e08f1b348eabcf4dd0eb2c0595acf42d1a40ba (patch)
treeecce48f1f90c22fab5383bd10a3e4ee35c928ea4
parentd13d0dc85c29885254115c26e25ec7c2e953468b (diff)
downloadaur-c5e08f1b348eabcf4dd0eb2c0595acf42d1a40ba.tar.gz
Use git version of LCM
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD18
2 files changed, 19 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c0d62cb02a0..e640514d3f1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
-pkgbase = lcm
+pkgbase = lcm-git
pkgdesc = Lightweight real-time networking library
- pkgver = 1.4.0
+ pkgver = 20200602.r1170.e7ab2d5
pkgrel = 1
url = https://github.com/lcm-proj/lcm
arch = i686
@@ -11,8 +11,8 @@ pkgbase = lcm
depends = glib2
optdepends = java-environment: support for lcm-spy and other GUI tools
optdepends = ttf-dejavu: support for lcm-spy and other GUI tools
- source = https://github.com/lcm-proj/lcm/releases/download/v1.4.0/lcm-1.4.0.zip
- sha512sums = 76ef0892cf7bc4cbda3c87776ebe9c095bae821efe19720461670031f88aff48f17551297b47c9bf8e0390a1ae0cf11240599be1bc235de96615c3e2866800fd
+ source = lcm-git-20200602.r1170.e7ab2d5::git+http://github.com/lcm-proj/lcm.git
+ sha512sums = SKIP
-pkgname = lcm
+pkgname = lcm-git
diff --git a/PKGBUILD b/PKGBUILD
index 80e8104cea0..77e920ea99c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Ethan Zonca <ethanzonca@ethanzonca.com>
-pkgname=lcm
-pkgver=1.4.0
+pkgname=lcm-git
+pkgver=20200602.r1170.e7ab2d5
pkgrel=1
pkgdesc="Lightweight real-time networking library"
arch=('i686' 'x86_64' 'armv7h')
@@ -13,8 +13,18 @@ optdepends=(
'ttf-dejavu: support for lcm-spy and other GUI tools'
)
makedepends=(cmake)
-source=(https://github.com/lcm-proj/lcm/releases/download/v$pkgver/$pkgname-$pkgver.zip)
-sha512sums=('76ef0892cf7bc4cbda3c87776ebe9c095bae821efe19720461670031f88aff48f17551297b47c9bf8e0390a1ae0cf11240599be1bc235de96615c3e2866800fd')
+source=($pkgname-$pkgver::git+http://github.com/lcm-proj/lcm.git)
+
+sha512sums=(SKIP)
+
+pkgver() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ printf "%s.r%s.%s" \
+ "$(git show -s --format=%ci master | sed 's/\ .*//g;s/-//g')" \
+ "$(git rev-list --count HEAD)" \
+ "$(git rev-parse --short HEAD)"
+}
build() {