You are not logged in.
PKGBUILD
pkgname=gprename
pkgver=1.24
pkgrel=1
pkgdesc="GPRename is a GUI batch file renamer based on Gtk-Perl."
source=(http://aleron.dl.sourceforge.net/sourceforge/gprename/$pkgname-$pkgver.tar.bz2)
depends=('bash' 'gtk-perl')
url="http://gprename.sourceforge.net/"
md5sums=('936cbc0695bcea7adba9ab8088c92683')
build() {
cd $startdir/src/$pkgname-$pkgver
mkdir -p $startdir/pkg/opt/gprename
mkdir -p $startdir/pkg/usr/bin
mv gprename.pl langs.pl languages/ pixmaps/ $startdir/pkg/opt/gprename/
echo "#!/bin/sh" >$startdir/pkg/usr/bin/gprename
echo "index=`expr index "$1" /`;" >> $startdir/pkg/usr/bin/gprename
echo "if [ $index != 1 ]">> $startdir/pkg/usr/bin/gprename
echo "then">> $startdir/pkg/usr/bin/gprename
echo " dir=`pwd`/$1;">> $startdir/pkg/usr/bin/gprename
echo "else">> $startdir/pkg/usr/bin/gprename
echo " dir="$1";">> $startdir/pkg/usr/bin/gprename
echo "fi">> $startdir/pkg/usr/bin/gprename
echo "perl /opt/gprename/gprename.pl /opt/gprename $dir &" >>$startdir/pkg/usr/bin/gprename
chmod +x $startdir/pkg/usr/bin/gprename
}
Offline