mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
desktop/parcellite: Updated for version 1.0.2rc2.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
parent
d57fd9310e
commit
18974e920c
4 changed files with 33 additions and 11 deletions
|
@ -1,9 +1,9 @@
|
|||
Parcellite is a lightweight GTK+ clipboard manager. This is a stripped
|
||||
down, basic-features-only clipboard manager with a small memory footprint
|
||||
Parcellite is a lightweight GTK+ clipboard manager. This is a stripped
|
||||
down, basic-features-only clipboard manager with a small memory footprint
|
||||
for those who like simplicity.
|
||||
|
||||
Parcellite features a clipboard CLI. Unrecognized options and the
|
||||
contents of your standard input get copied to your clipboard.
|
||||
contents of your standard input get copied to your clipboard.
|
||||
See the man page for examples.
|
||||
|
||||
Features
|
||||
|
@ -12,3 +12,7 @@ Features
|
|||
* Daemon mode; guard your clipboard contents when you close applications.
|
||||
* Global hotkeys to display your items quickly.
|
||||
* Perform custom commands using clipboard contents.
|
||||
|
||||
If you prefer using stock GTK icons (based on your GTK theme) as opposed to
|
||||
the new Parcellite icon, then simply run the script like this:
|
||||
NOICON=YES ./parcellite.SlackBuild
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
# Written by Phillip Warner <pc_warner@yahoo.com>
|
||||
|
||||
PRGNAM=parcellite
|
||||
VERSION=${VERSION:-0.9.2}
|
||||
VERSION=${VERSION:-1.0.2rc2}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -23,6 +23,9 @@ TMP=${TMP:-/tmp/SBo}
|
|||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
# If set to "YES" then parcellite will use GTK Stock Icon based upon theme
|
||||
NOICON=${NOICON:-NO}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
|
@ -48,6 +51,13 @@ find . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
if [ "$NOICON" = "YES" ]; then
|
||||
# Force parcellite to use the stock GTK icons
|
||||
sed -i "s/gtk_status_icon_new_from_icon_name(PARCELLITE_ICON)/gtk_status_icon_new_from_stock(PARCELLITE_ICON)/" src/main.c
|
||||
sed -i "s/PARCELLITE_ICON/GTK_STOCK_PASTE/" src/main.c
|
||||
sed -i "s/#define GTK_STOCK_PASTE \"parcellite\"//" src/main.c
|
||||
fi
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CPPFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
|
@ -59,6 +69,14 @@ CPPFLAGS="$SLKCFLAGS" \
|
|||
CFLAGS="$SLKCFLAGS" make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
if [ "$NOICON" = "YES" ]; then
|
||||
sed -i "s/Icon=parcellite/Icon=gtk-paste/" $PKG/usr/share/applications/parcellite.desktop
|
||||
sed -i "s/Icon=parcellite/Icon=gtk-paste/" $PKG/etc/xdg/autostart/parcellite-startup.desktop
|
||||
|
||||
# Remove the unused icons
|
||||
rm -rfv $PKG/usr/share/pixmaps/
|
||||
fi
|
||||
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
|
@ -66,7 +84,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
|
|||
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a AUTHORS COPYING ChangeLog README TODO INSTALL \
|
||||
cp -a AUTHORS COPYING ChangeLog README TODO INSTALL NEWS \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="parcellite"
|
||||
VERSION="0.9.2"
|
||||
VERSION="1.0.2rc2"
|
||||
HOMEPAGE="http://parcellite.sourceforge.net"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/parcellite/parcellite-0.9.2.tar.gz"
|
||||
MD5SUM="a650f6fe0fec96827b30ca3218a2b4df"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/parcellite/parcellite-1.0.2rc2.tar.gz"
|
||||
MD5SUM="c1ade542f9b5e836af18773171e70e95"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Phillip Warner"
|
||||
EMAIL="pc_warner@yahoo.com"
|
||||
APPROVED="rworkman"
|
||||
APPROVED="dsomero"
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
|
||||
|-----handy-ruler-----------------------------------------------------|
|
||||
parcellite: parcellite (clipboard manager)
|
||||
parcellite:
|
||||
parcellite:
|
||||
parcellite: Parcellite is a lightweight GTK+ clipboard manager.
|
||||
parcellite:
|
||||
parcellite:
|
||||
parcellite: Homepage: http://parcellite.sourceforge.net
|
||||
parcellite:
|
||||
parcellite:
|
||||
|
|
Loading…
Reference in a new issue