summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD40
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5f9288953bc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = enlive-git
+ pkgdesc = A selector-based (a la CSS) templating library for Clojure
+ pkgver = 20121111
+ pkgrel = 1
+ url = http://github.com/cgrant/enlive
+ arch = i686
+ arch = x86_64
+ license = EPL
+ makedepends = apache-ant
+ makedepends = git
+ depends = java-environment
+ depends = clojure
+ depends = leiningen
+ provides = enlive
+
+pkgname = enlive-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f2714653f45
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Daichi Shinozaki
+pkgname=enlive-git
+pkgver=20121111
+pkgrel=1
+pkgdesc="A selector-based (a la CSS) templating library for Clojure"
+arch=(i686 x86_64)
+url="http://github.com/cgrant/enlive"
+license=("EPL")
+depends=('java-environment' 'clojure' 'leiningen')
+makedepends=('apache-ant' 'git')
+provides=('enlive')
+
+_gitroot=git://github.com/cgrand/enlive.git
+_gitname=enlive
+
+build() {
+ cd ${srcdir}
+
+ msg "Connecting to github.com GIT server..."
+ if [ -d ${_gitname} ]; then
+ (cd ${_gitname} && git pull origin)
+ else
+ git clone ${_gitroot}
+ fi
+
+ msg "GIT checkout done or server timeout"
+ msg "Starting ant build process..."
+
+ rm -rf ${_gitname}-build
+ git clone ${_gitname} ${_gitname}-build
+ cd ${_gitname}-build
+
+ lein deps
+ lein jar
+}
+package() {
+ cd ${_gitname}-build
+ mkdir -p ${pkgdir}/usr/share/clojure
+ install -m 644 -D ${srcdir}/${pkgname//-git/}-build/target/${pkgname//-git/}*jar ${pkgdir}/usr/share/clojure/
+}