You are not logged in.
Hi,
I've wrote two PKGBUILDs for Plucker (http://www.plkr.org/), an offline HTML reader for Palm and PDAs, and for Plucker-Desktop, its GUI frontend.
Plucker:
pkgname=plucker
pkgver=1.8
pkgrel=1
pkgdesc="Plucker is an offline Web and e-book viewer for PalmOS® based handheld devices and PDAs."
url="http://www.plkr.org/"
license="GPL"
makedepends=('rpm2targz')
depends=('netpbm')
source=(http://www.unmetered.org.uk/plkr/$pkgname-$pkgver-1.i386.rpm)
md5sums=(1c2eb8f064b0b9d9bfdb8cc1652dd24d)build() {
# if the converted rpm exist, gzip will ask to overwrite it. To automate things, just remove it
if [ -e $pkgname-$pkgver-1.i386.tar.gz ]; then
rm $pkgname-$pkgver-1.i386.tar.gz
fi# Convert the rpm into a tar.gz
rpm2targz $pkgname-$pkgver-1.i386.rpm# Extract it
tar -zxf $pkgname-$pkgver-1.i386.tar.gz# Create needed directory
mkdir -p $startdir/pkg/bin# Move the containt of the package
mv ./usr $startdir/pkg# Create symbolic links
cd $startdir/pkg/bin
ln -s /usr/lib/python/site-packages/PyPlucker/Spider.py plucker-build
ln -s /usr/plucker-setup plucker-setup
}
Plucker Desktop:
pkgname=plucker-desktop
pkgver=1.6.0.0
pkgrel=1
pkgdesc="Plucker is an offline Web and e-book viewer for PalmOS® based handheld devices and PDAs."
url="http://www.plkr.org/"
license="GPL"
depends=('plucker')
makedepends=('rpm2targz')
source=(http://desktop.plkr.org/downloads/linux/$pkgname-$pkgver-1.i386.rpm $pkgname.desktop)
md5sums=('65faee5fcb0ffe9d075226e4425e90ca' '7fd34713057b5b8c9468d62cb832a915')build() {
# if the converted rpm exist, gzip will ask to overwrite it. To automate things, just remove it
if [ -e $pkgname-$pkgver-1.i386.tar.gz ]; then
rm $pkgname-$pkgver-1.i386.tar.gz
fi# Convert the rpm into a tar.gz
rpm2targz $pkgname-$pkgver-1.i386.rpm# Extract it
tar -zxf $pkgname-$pkgver-1.i386.tar.gz# Move the containt of the package
mv ./usr $startdir/pkg# Install menu entry
install -D -m644 $startdir/$pkgname.desktop $startdir/pkg/usr/share/applications/$pkgname.desktop
}
[Desktop Entry]
Name=Plucker Desktop
Comment=Plucker Desktop
Exec=plucker-desktop
Icon=/usr/share/plucker-desktop/resource/icons_application/application_64x64.xpm
Terminal=0
Type=Application
Encoding=UTF-8
Categories=Network;Application;
Please be carefull when copy/pasting the plucker-desktop.desktop file. The md5sum could be different...
Please post back comments/bugs
Good luck
Offline