mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
testing/parcellite: new aport
This commit is contained in:
parent
bc55cf1e8d
commit
e7d3c2c45d
49
testing/parcellite/APKBUILD
Normal file
49
testing/parcellite/APKBUILD
Normal file
@ -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"
|
||||
11
testing/parcellite/fix-crash.patch
Normal file
11
testing/parcellite/fix-crash.patch
Normal file
@ -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]){
|
||||
Loading…
x
Reference in New Issue
Block a user