diff options
Diffstat (limited to 'games/pioneer/pioneer.SlackBuild')
-rw-r--r-- | games/pioneer/pioneer.SlackBuild | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/games/pioneer/pioneer.SlackBuild b/games/pioneer/pioneer.SlackBuild index 333b198ccc..97881b45fe 100644 --- a/games/pioneer/pioneer.SlackBuild +++ b/games/pioneer/pioneer.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=pioneer -VERSION=${VERSION:-20151130} +VERSION=${VERSION:-20151214} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -98,15 +98,36 @@ EOF find . -perm 644 -exec chmod 755 {} \; cd - +# Write a desktop file +mkdir -p $PKG/usr/share/applications +cat > $PKG/usr/share/applications/$PRGNAM.desktop <<EOF +[Desktop Entry] +Name=$(echo "${PRGNAM^}") +Exec=$PRGNAM +Icon=badge-full +Type=Application +Comment=$(echo "${PRGNAM^}") (space adventure game) +Categories=Game;AdventureGame; +EOF + # Add data files to package mv ${PKG}data $PKG/opt/$PRGNAM-$VERSION/data cp -a data/listdata* $PKG/opt/$PRGNAM-$VERSION/data -# Remove empty .gitignore files -for i in $(find $PKG/opt/$PRGNAM-$VERSION/data -name ".gitignore"); do - rm -f $i +# Add missing icons to package +for size in $(find /usr/share/icons/hicolor -type d -mindepth 1 -maxdepth 1 -exec basename {} \;); do + if ls application-icon/pngs/*${size}* 1>/dev/null 2>/dev/null; then + mkdir -p $PKG/usr/share/icons/hicolor/${size}/apps + cp -a application-icon/pngs/*${size}*.png $PKG/usr/share/icons/hicolor/${size}/apps + elif [ "$size" = "scalable" ]; then + mkdir -p $PKG/usr/share/icons/hicolor/${size}/apps + cp -a application-icon/*.svg $PKG/usr/share/icons/hicolor/${size}/apps + fi done +# Remove empty .gitignore files +find $PKG/opt/$PRGNAM-$VERSION/data -name ".gitignore" -exec rm -f {} \; + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -aR licenses *.txt README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |