initial import
This commit is contained in:
43
parcellite/PKGBUILD
Normal file
43
parcellite/PKGBUILD
Normal file
@@ -0,0 +1,43 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=parcellite
|
||||
pkgver=1.2.1
|
||||
pkgrel=2
|
||||
pkgdesc="Lightweight GTK+ clipboard manager"
|
||||
arch=('i686' 'x86_64')
|
||||
url='https://parcellite.sourceforge.net/'
|
||||
license=('GPL-3')
|
||||
depends=('gtk2' 'xdotool')
|
||||
makedepends=('intltool' 'gettext-tiny')
|
||||
source=("https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz"
|
||||
"fix-crash.patch"
|
||||
"remove-unused-des-and-add-missing-keywords.patch")
|
||||
sha512sums=('14b513e760e205666e00893dffb75ef3d42994aaeca3238b5adbed4af7495a7ed67cfabdcb163024fb9b0a7e832599bb31c54201217ac3fca88e0a4a22deb53d'
|
||||
'3cfbf5e22ff33d4c33696fb2a8e4c24b91ded0a36b30188e47f56532e315184eed69e66f3dc4dd9cd1dcaa1310d9343e79d19238012acf76fb36418766e007c9'
|
||||
'dd7d8f99c6154d6ed159d425060bc25573fc67750e2e581217ac1042a6b780dfc22c4bda195c5456a46823eda6f49491d72a5d69f7b72ebc074a14b4a5b5f9da')
|
||||
|
||||
prepare() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
|
||||
# apply patch fixing crash on the preferences dialogue
|
||||
patch --verbose -p1 -i ../fix-crash.patch
|
||||
|
||||
# apply patch removing other desktop environments that are unused
|
||||
# and adding missing keywords in the application shortcut
|
||||
patch --verbose -p1 -i ../remove-unused-des-and-add-missing-keywords.patch
|
||||
sed -i '8d' data/${pkgname}-startup.desktop.in
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
make DESTDIR=${pkgdir} install
|
||||
install -Dvm644 COPYING -t ${pkgdir}/usr/share/licenses/${pkgname}
|
||||
}
|
||||
11
parcellite/fix-crash.patch
Normal file
11
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]){
|
||||
17
parcellite/remove-unused-des-and-add-missing-keywords.patch
Normal file
17
parcellite/remove-unused-des-and-add-missing-keywords.patch
Normal file
@@ -0,0 +1,17 @@
|
||||
Summary: Remove other desktop environments that are unused, and
|
||||
add missing keywords in the app shortcut.
|
||||
Authors: Jayvee Enaguas <harvettfox96@dismail.de>
|
||||
Hugo Lufeuvre <hle@debian.org> (a patch based on Debian)
|
||||
Date: 2021-10-08 23:20:30.000000000 +0000
|
||||
|
||||
--- a/data/parcellite.desktop.in 2017-01-24 07:48:57.000000000 +0000
|
||||
+++ a/data/parcellite.desktop.in 2021-10-08 23:20:30.000000000 +0000
|
||||
@@ -6,5 +6,6 @@
|
||||
Exec=parcellite
|
||||
Terminal=false
|
||||
Type=Application
|
||||
-Categories=GTK;GNOME;Application;Utility;
|
||||
-OnlyShowIn=GNOME;KDE;LXDE;MATE;Razor;ROX;TDE;Unity;XFCE;Old;
|
||||
+Keywords=clipboard;copy;manager;paste;
|
||||
+Categories=GTK;Application;Utility;
|
||||
+OnlyShowIn=Lumina;Old;ROX;
|
||||
Reference in New Issue
Block a user