summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorandalenavals2017-12-29 01:26:08 -0500
committerandalenavals2017-12-29 01:26:08 -0500
commit6512449b719cbf5d5136c987963301a5a7dd506a (patch)
treebbf2dfd7a593a7df73eb45cb0014920a0581d08d
parentae11adae2087e38dff6bfe3d7100bc728861744f (diff)
downloadaur-6512449b719cbf5d5136c987963301a5a7dd506a.tar.gz
remove a bunch of empty or commented out variables and arrays, change source name avoiding multiple cloning, include tag in pkgver()
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD44
2 files changed, 13 insertions, 35 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e172ae90d8c..b9d37aae560 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = tmv-git
pkgdesc = A fast, intuitive linear algebra library for C++
- pkgver = r101.fab5df3
+ pkgver = v0.75.r0.fab5df3
pkgrel = 1
url = https://github.com/rmjarvis/tmv/
arch = i686
@@ -9,7 +9,7 @@ pkgbase = tmv-git
makedepends = git
depends = bash
depends = cblas
- source = tmv-git-r101.fab5df3::git+https://github.com/rmjarvis/tmv/
+ source = tmv::git+https://github.com/rmjarvis/tmv/
md5sums = SKIP
pkgname = tmv-git
diff --git a/PKGBUILD b/PKGBUILD
index 25e161b6a93..7c31c30f992 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,56 +1,34 @@
-# This is an example PKGBUILD file. Use this as a start to creating your own,
-# and remove these comments. For more information, see 'man PKGBUILD'.
-# NOTE: Please fill out the license field for your package! If it is unknown,
-# then please put 'unknown'.
-
# Maintainer: Andres Alejandro Navarro Alsina <aanavarroa@unal.edu.co>
# Contributor: M. Jarvis
pkgname=tmv-git
-pkgver=r101.fab5df3
+pkgver=v0.75.r0.fab5df3
pkgrel=1
#epoch=
-
pkgdesc=" A fast, intuitive linear algebra library for C++ "
-
-
arch=('i686' 'x86_64')
url="https://github.com/rmjarvis/tmv/"
license=('BSD')
-groups=()
depends=('bash' 'cblas')
makedepends=('git')
-checkdepends=()
-optdepends=()
-#provides=()
-#conflicts=()
-#replaces=()
-#backup=()
-options=()
-install=
-changelog=
-source=("$pkgname-$pkgver::git+${url}")
-#noextract=()
+source=("${pkgname%-git}::git+${url}")
md5sums=('SKIP')
-#validpgpkeys=()
-build() {
- cd "$src"
- cd "$pkgname-$pkgver"
- scons PREFIX=/usr
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
-pkgver() {
- cd "$pkgname-$pkgver"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ scons PREFIX=/usr
}
package() {
- cd "$src"
- cd "$pkgname-$pkgver"
- scons PREFIX=$pkgdir/usr install
- install -Dm644 TMV_LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ cd "$srcdir/${pkgname%-git}"
+ scons PREFIX=$pkgdir/usr FINAL_PREFIX=/usr install
+ install -Dm644 TMV_LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}