misc/myclippings: Added (Parser for Kindle "My Clippings.txt" file)

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
Cezary M. Kruk 2012-04-15 11:43:27 -04:00 committed by Erik Hanson
parent d8e7dcedd4
commit 16f6a3de76
4 changed files with 87 additions and 0 deletions

10
misc/myclippings/README Normal file
View File

@ -0,0 +1,10 @@
Perl parser for the Kindle's 3 and 4 "My Clippings.txt" file
The myclippings script is based on parse_kindle_clippings script and parses
Kindle's "My Clippings.txt" file for highlights, notes, and bookmarks,
groups them by book/title, and stores them in the separate files or in a
single file.
Kindle's "My Clippings.txt" file is a mess. The myclippings script helps to
sort clippings in order to process them in the editor or to store sorted and
edited clippings back in "My Clippings.txt" file.

View File

@ -0,0 +1,48 @@
#!/bin/sh
# Slackware build script for myclippings
# Written by Cezary M. Kruk (c.kruk@bigfoot.com)
# Modified by the SlackBuilds.org project
PRGNAM=myclippings
VERSION=${VERSION:-1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
ARCH=noarch
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM
tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
# Copying scripts to the correct location
mkdir -p $PKG/usr/bin
cp -a myclippings $PKG/usr/bin
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a Kindle\ 3 Kindle\ 4 COPYING ChangeLog INSTALL README README.Windows.txt THANKS \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View File

@ -0,0 +1,10 @@
PRGNAM="myclippings"
VERSION="1.0"
HOMEPAGE="http://linux-bsd-unix.strefa.pl/"
DOWNLOAD="http://linux-bsd-unix.strefa.pl/myclippings-1.0.tar.gz"
MD5SUM="104c7536ffc09964ca1aac725ddbd447"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Cezary M. Kruk"
EMAIL="c.kruk@bigfoot.com"
APPROVED="dsomero"

View File

@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
myclippings: myclippings (Parser for Kindle's 3 and 4 "My Clippings.txt" file)
myclippings:
myclippings: The myclippings script is based on parse_kindle_clippings script and
myclippings: parses Kindle's "My Clippings.txt" file for highlights, notes, and
myclippings: bookmarks, groups them by book/title, and stores them in the separate
myclippings: files or in a single file.
myclippings:
myclippings: Kindle's "My Clippings.txt" file is a mess. The myclippings script
myclippings: helps to sort clippings in order to process them in the editor or to
myclippings: store sorted and edited clippings back in "My Clippings.txt" file.
myclippings: