You are not logged in.

#1 2005-03-22 10:58:57

big_gie
Member
Registered: 2005-01-19
Posts: 637

Plucker and Plucker Desktop PKGBUILDs

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:

PKGBUILD wrote:

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:

PKGBUILD wrote:

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
}

plucker-desktop.desktop wrote:

[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

Board footer

Powered by FluxBB