aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/cjs/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/cjs/APKBUILD')
-rw-r--r--unmaintained/cjs/APKBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/unmaintained/cjs/APKBUILD b/unmaintained/cjs/APKBUILD
new file mode 100644
index 0000000000..ecf3cc833f
--- /dev/null
+++ b/unmaintained/cjs/APKBUILD
@@ -0,0 +1,52 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=cjs
+pkgver=2.0.0
+pkgrel=0
+pkgdesc="Javascript Bindings for Cinnamon"
+url="https://github.com/linuxmint/cjs"
+arch="all"
+license="GPL"
+depends=""
+depends_dev="gobject-introspection-dev js-dev dbus-glib-dev"
+makedepends="$depends_dev autoconf automake libtool gnome-common"
+install=""
+subpackages="$pkgname-dev"
+source="${pkgname}-${pkgver}.tar.gz::https://github.com/linuxmint/cjs/archive/${pkgver}.tar.gz"
+
+_builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./autogen.sh \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*/*.la \
+ "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="f40addaca0e9cf55d80a31fe5d5bac7c cjs-2.0.0.tar.gz"
+sha256sums="2fea6c491e6ce8567201f14c0e926181154d798d4811dd65da477c014bfb2a9a cjs-2.0.0.tar.gz"
+sha512sums="0faec81c031e1ae54c4384f5a843b52ce6952d1c3334104914c40aa3ba8b34ab84c335efbdfeb1b99728c195a2f3f204cfe07ce887aa1a103e4151b20c9c14a8 cjs-2.0.0.tar.gz"