summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8dbd6be4c96
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Vincent Bernardoff <va AT luminar.eu.org>
+
+pkgname=ta-lib-git
+pkgver=v0.6.0.rc.1.r3.ga61875c1
+pkgrel=1
+pkgdesc='A library providing common functions for the technical analysis of financial market data'
+url='https://github.com/vbmithr/ta-lib'
+license=('BSD')
+arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
+makedepends=('git' 'autoconf' 'automake' 'm4' 'make')
+source=(${pkgname%-git}::git+https://github.com/vbmithr/ta-lib
+ 'LICENSE')
+sha256sums=('SKIP'
+ '10ddcfc0d685173fdee2d7e8791540bb1a8526a0f66f7795bdf7dad23457b10e')
+
+pkgver() {
+ cd "${pkgname%-git}"
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "${pkgname%-git}"
+
+ autoreconf -i
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "${pkgname%-git}"
+
+ make DESTDIR="$pkgdir" install
+ install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}