aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorAmatCoder <amatcoder@users.noreply.github.com>2014-10-26 22:26:37 +0000
committerAmatCoder <amatcoder@users.noreply.github.com>2014-10-26 22:26:37 +0000
commite7d3c2c45de44b2ab23ebb4f0da59a55e778675c (patch)
tree11642ce7a3e61e0bafbb754525c5451cb9bf730a /testing
parentbc55cf1e8d9e0d8a53ec8a46aaaa0a121d0efc8b (diff)
downloadaports-e7d3c2c45de44b2ab23ebb4f0da59a55e778675c.tar.bz2
aports-e7d3c2c45de44b2ab23ebb4f0da59a55e778675c.tar.xz
testing/parcellite: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/parcellite/APKBUILD49
-rw-r--r--testing/parcellite/fix-crash.patch11
2 files changed, 60 insertions, 0 deletions
diff --git a/testing/parcellite/APKBUILD b/testing/parcellite/APKBUILD
new file mode 100644
index 0000000000..6d2f92a7e5
--- /dev/null
+++ b/testing/parcellite/APKBUILD
@@ -0,0 +1,49 @@
+# Contributor: August Klein <amatcoder@gmail.com>
+# Maintainer: August Klein <amatcoder@gmail.com>
+pkgname=parcellite
+pkgver=1.1.9
+pkgrel=0
+pkgdesc="A lightweight GTK+ clipboard manager"
+url="http://parcellite.sourceforge.net"
+arch="all"
+license="GPL3"
+depends=""
+depends_dev="gtk+2.0-dev"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-lang $pkgname-doc"
+source="http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz
+ fix-crash.patch"
+
+_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"
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="6c3b70165c2dee9341a81a2a8481e446 parcellite-1.1.9.tar.gz
+f2cc1986e573d49c92ea3d81efd5d574 fix-crash.patch"
+sha256sums="cba89585082eebbe848ac1c0023cc71a0184c0db24ebc5f8a21039e46d7f11d4 parcellite-1.1.9.tar.gz
+8fe1e86958d371c9fa9474fe64b203ed483f636f3f98152237402ea84b2d2cbd fix-crash.patch"
+sha512sums="24721dbd4f049f65a40f4e4c6914344062d49dfb50e3cf6496c6f14d9aff02bef5b88d3a714e8176955c84b1324c9ca1f35b389e8033d1232dd3c802c40e32bf parcellite-1.1.9.tar.gz
+3cfbf5e22ff33d4c33696fb2a8e4c24b91ded0a36b30188e47f56532e315184eed69e66f3dc4dd9cd1dcaa1310d9343e79d19238012acf76fb36418766e007c9 fix-crash.patch"
diff --git a/testing/parcellite/fix-crash.patch b/testing/parcellite/fix-crash.patch
new file mode 100644
index 0000000000..a8ce712e1a
--- /dev/null
+++ b/testing/parcellite/fix-crash.patch
@@ -0,0 +1,11 @@
+--- a/src/preferences.c.orig 2013-11-11 14:39:32.000000000 +0400
++++ b/src/preferences.c 2013-11-11 14:40:03.970776522 +0400
+@@ -381,7 +381,7 @@
+ }
+ /**now go through and make sure we have no duplicates */
+ for (i=0;NULL != keylist[i].name; ++i){
+- if(0 != keylist[i].keyval[0]){
++ if(NULL != keylist[i].keyval && 0 != keylist[i].keyval[0]){
+ /**see if it exists elsewhere */
+ for (l=0;NULL != keylist[l].name; ++l){
+ if(l!=i && 0 != keylist[l].keyval[0]){