1
0
forked from ports/contrib

phun: some cosmetic improvements + .desktop file

This commit is contained in:
Bartlomiej Palmowski 2008-05-20 12:18:24 +02:00
parent 53bed04685
commit deb9490ef2
2 changed files with 7 additions and 7 deletions

View File

@ -2,6 +2,8 @@ drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/phun
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/applications/
-rw-r--r-- root/root usr/share/applications/phun.desktop
drwxr-xr-x root/root usr/share/phun/
drwxr-xr-x root/root usr/share/phun/Data/
drwxr-xr-x root/root usr/share/phun/Data/Fonts/

View File

@ -11,14 +11,12 @@ source=(http://www.acc.umu.se/~emilk/files/Phun_beta_3_5_linux32.tar.bz2 $name.d
build() {
cd Phun
mkdir -p $PKG/usr/share/$name
mkdir $PKG/usr/bin
mkdir -p $PKG/usr/bin
cp -a ./* $PKG/usr/share/$name
cd $PKG/usr/bin
mv $PKG/usr/share/$name/$name .
sed -i 'i#!/bin/bash\ncd /usr/share/phun' $name
# optional .desktop file
# install -D -m 0644 $SRC/$name.desktop $PKG/usr/share/applications/$name.desktop
mv $PKG/usr/share/$name/$name $PKG/usr/bin/
sed -i 'i#!/bin/bash\ncd /usr/share/phun' $PKG/usr/bin/$name
install -D -m 0644 $SRC/$name.desktop $PKG/usr/share/applications/$name.desktop
chmod 1777 $PKG/usr/share/phun/{Scenes,Screenshots}
find $PKG -name "*.txt" -exec rm -f {} \;
find $PKG -name "*.txt" -delete
chmod -R a+Xr $PKG/usr/share/$name/Data/
}