summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorXunhua Guo2015-07-16 20:36:43 +0800
committerXunhua Guo2015-07-16 20:36:43 +0800
commit800e77d428a140420d93c5591f835606956eeefd (patch)
tree1747dc5d04d4ffa732e7b54aae60d19b75af9778
downloadaur-800e77d428a140420d93c5591f835606956eeefd.tar.gz
Initial import
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD21
2 files changed, 35 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..68979e4dfde
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = json-simple
+ pkgdesc = JSON.simple - A simple Java toolkit for JSON.
+ pkgver = 1.1.1
+ pkgrel = 1
+ url = http://code.google.com/p/json-simple
+ arch = i686
+ arch = x86_64
+ license = APACHE
+ depends = java-runtime
+ source = http://json-simple.googlecode.com/files/json-simple-1.1.1.jar
+ sha1sums = 5d6f9b6a9ddca2a28c0216cc44efb2e20d9c23b5
+
+pkgname = json-simple
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..36220e9dbb2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,21 @@
+# Maintainer: Xunhua Guo <xunhua.guo@gmail.com>
+
+pkgname=json-simple
+pkgver=1.1.1
+pkgrel=1
+pkgdesc='JSON.simple - A simple Java toolkit for JSON.'
+arch=('i686' 'x86_64')
+url='http://code.google.com/p/json-simple'
+license=('APACHE')
+depends=('java-runtime')
+source=("http://json-simple.googlecode.com/files/${pkgname}-${pkgver}.jar")
+sha1sums=('5d6f9b6a9ddca2a28c0216cc44efb2e20d9c23b5')
+
+package() {
+ install -d -m755 "${pkgdir}/usr/share/java/${pkgname}/"
+ install -m755 \
+ "${srcdir}/${pkgname}-${pkgver}.jar" \
+ "${pkgdir}/usr/share/java/${pkgname}/"
+ ln -s "/usr/share/java/${pkgname}/${pkgname}-${pkgver}.jar" "${pkgdir}/usr/share/java/${pkgname}/${pkgname}.jar"
+}
+