You are not logged in.

#1 2004-05-19 00:32:56

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

pogo

AFAIK this was some time ago somewhere in the repos but it disappeared (I know because I had it installed and now there is no sign of this program).

Please be gentle - the author of the program was too lazy to make any configure script and a good makefile and I don't have enough knowledge to write them myself (it's a perfect combination for making packages isn't it? :-)) so this pkgbuild is quite long but I tried to make it simple and arch compliant as much as I could :-)

BTW: I love the RC35 :shock:

pkgname=pogo
pkgver=3.0
pkgrel=1
pkgdesc="Program launcher and application front-end for X11"
url="http://www.ibiblio.org/propaganda/pogo/"
makedepends=('sed')
depends=('imlib')
install=pogo.install
source=(http://www.ibiblio.org/propaganda/pogo/${pkgname}-${pkgver}RC42.tar.gz)
md5sums=('520a91b562e241ae4502d892d6e76d6a')

build() {

    cd $startdir/src/$pkgname-$pkgver

    gcc -o ./bin/pogo ./src/pogo.c -Wall -I/usr/X11R6/include 
    -I/usr/include -L/usr/X11R6/lib -L/usr/lib -lX11 -lXext 
    -ljpeg -lz -lm -lImlib || return 1

    gcc -o ./bin/pogo-remote src/pogo-remote.c -Wall || return 1

    install -D -m755 $startdir/src/$pkgname-$pkgver/bin/pogo 
            $startdir/pkg/usr/bin/pogo
    install -D -m755 $startdir/src/$pkgname-$pkgver/bin/pogo-remote 
            $startdir/pkg/usr/bin/pogo-remote

    cd $startdir/src/$pkgname-$pkgver/configs
    for i in *
    do
        sed -i "s/__INSTALLDIR__/images//usr/share/pogo/images/g" 
                $startdir/src/$pkgname-$pkgver/configs/$i
        sed -i "s/__INSTALLDIR__/scripts//usr/share/pogo/scripts/g" 
                $startdir/src/$pkgname-$pkgver/configs/$i
        sed -i "s/__INSTALLDIR__/configs//etc/pogo/configs/g" 
                $startdir/src/$pkgname-$pkgver/configs/$i
        sed -i "s/__INSTALLDIR__/pogo//usr/bin/pogo/g" 
                $startdir/src/$pkgname-$pkgver/configs/$i
        install -D -m644 $startdir/src/$pkgname-$pkgver/configs/$i 
                $startdir/pkg/etc/pogo/configs/$i
    done

    cd $startdir/src/$pkgname-$pkgver/scripts
    for i in *
    do
        sed -i "s/__INSTALLDIR__/images//usr/share/pogo/images/g" 
                $startdir/src/$pkgname-$pkgver/scripts/$i
        sed -i "s/__INSTALLDIR__/scripts//usr/share/pogo/scripts/g" 
                $startdir/src/$pkgname-$pkgver/scripts/$i
        sed -i "s/__INSTALLDIR__/configs//etc/pogo/configs/g" 
                $startdir/src/$pkgname-$pkgver/scripts/$i
        sed -i "s/__INSTALLDIR__/pogo//usr/bin/pogo/g" 
                $startdir/src/$pkgname-$pkgver/scripts/$i
        install -D -m755 $startdir/src/$pkgname-$pkgver/scripts/$i 
                $startdir/pkg/usr/share/pogo/scripts/$i
    done

    cd $startdir/src/$pkgname-$pkgver/images
    for i in *
    do
        install -D -m644 $startdir/src/$pkgname-$pkgver/images/$i 
                $startdir/pkg/usr/share/pogo/images/$i
    done

}

The install file is very simple - it's just displays a message how you can use this application after installation - feel free to remove it from PKGBUILD if you think it's stupid :-)

pogo.install

post_install() {
  echo "------------------------------------"
  echo "pogo binaries are installed in /usr/bin"
  echo "example config files are in /etc/pogo/configs"
  echo "images and script files are in /usr/share/pogo"
  echo ""
  echo "in your user home dir make a subdir named .pogo-3.0"
  echo ""
  echo "mkdir ~/.pogo-3.0"
  echo ""
  echo "copy (and edit if you like) or link to /etc/pogo/configs"
  echo "and /usr/share/pogo/images. you can also make a link to"
  echo "or copy (and edit) scripts directory from"
  echo "/usr/share/pogo/scripts"
  echo ""
  echo "cd ~/.pogo-3.0"
  echo "ln -s /etc/pogo/configs configs"
  echo "ln -s /usr/share/pogo/images images"
  echo "ln -s /usr/share/pogo/scripts scripts"
  echo ""
  echo "then you can run pogo with the example confguration."
  echo "if you want to be able to change the configs you will"
  echo "need apropriate write rights or create (copy) above dirs"
  echo "and files yourself"
  echo ""
  echo "go to http://www.ibiblio.org/propaganda/pogo"
  echo "for more information and screenshots."
  echo "some info is provided in the README file inside"
  echo "the source package."
  echo "------------------------------------"
}

post_upgrade() {
  /bin/true
}

pre_remove() {
  /bin/true
}

post_remove() {
  /bin/true
}

op=$1
shift
$op $*

Offline

#2 2004-07-24 05:45:26

ro0x
Member
From: Santiago, Chile
Registered: 2004-06-20
Posts: 79

Offline

#3 2004-07-24 16:30:11

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: pogo

Thanks for the info. I've updated the above pkgbuild for RC42 (only the sourcefile name change and new md5 sum, everything else seems to not need any changes). I recompiled it and reistalled. It works fine but I'm not using it everyday so if you find any errors please let me know.

Offline

Board footer

Powered by FluxBB