summaryrefslogtreecommitdiff
path: root/repo/system/liblinear.xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'repo/system/liblinear.xibuild')
-rw-r--r--repo/system/liblinear.xibuild18
1 files changed, 18 insertions, 0 deletions
diff --git a/repo/system/liblinear.xibuild b/repo/system/liblinear.xibuild
new file mode 100644
index 0000000..2427bca
--- /dev/null
+++ b/repo/system/liblinear.xibuild
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+MAKEDEPS=(make )
+DEPS=(glibc)
+
+PKG_VER=243
+SOURCE=https://github.com/cjlin1/liblinear/archive/v$PKG_VER/liblinear-$PKG_VER.tar.gz
+DESC="A library for large linear classification"
+
+build () {
+ make lib
+}
+
+package () {
+ install -vm644 linear.h $PKG_DEST/usr/include &&
+ install -vm755 liblinear.so.4 $PKG_DEST/usr/lib &&
+ ln -sfv liblinear.so.4 $PKG_DEST/usr/lib/liblinear.so
+}