diff options
Diffstat (limited to 'games/freedoom/freedoom.SlackBuild')
-rw-r--r-- | games/freedoom/freedoom.SlackBuild | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/games/freedoom/freedoom.SlackBuild b/games/freedoom/freedoom.SlackBuild index 6d2b5711a40eb..b94afae240325 100644 --- a/games/freedoom/freedoom.SlackBuild +++ b/games/freedoom/freedoom.SlackBuild @@ -7,7 +7,7 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. PRGNAM=freedoom -VERSION=${VERSION:-0.8} +VERSION=${VERSION:-0.9} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -29,27 +29,30 @@ cd $TMP/$PRGNAM-$VERSION mkdir -p $PKG/usr/share/games/doom $PKG/usr/doc/$PRGNAM-$VERSION -for zipfile in $PRGNAM-iwad $PRGNAM-ultimate freedm; do - unzip $CWD/$zipfile-v$VERSION.zip - cd $zipfile-v$VERSION +for zipfile in $PRGNAM freedm; do + unzip $CWD/$zipfile-$VERSION.zip + cd $zipfile-$VERSION chown -R root:root . chmod 644 * cp *.wad $PKG/usr/share/games/doom cd - done -# The docs are identical in all 3 zipfiles, only keep one set. -cd $PRGNAM-iwad-v$VERSION -cp COPYING CREDITS *.html $PKG/usr/doc/$PRGNAM-$VERSION +# The docs are identical in both zipfiles, only keep one set. +cd $PRGNAM-$VERSION +cp -a COPYING CREDITS *.html $PKG/usr/doc/$PRGNAM-$VERSION cd - -# Rename to avoid conflicts with id software's doom.wad and doom2.wad. +# Upstream recently renamed their wad files. The new names are less +# confusing (freedoom1.wad is Doom I, freedoom2.wad is Doom II). For now, +# we'll make symlinks to the old names, for compatibility with engines that +# don't yet know about the new names. # zdoom will correctly find the files with these names, according to # http://remilia.zdoom.org/wiki/IWAD cd $PKG/usr/share/games/doom -mv doom.wad freedoomu.wad -mv doom2.wad freedoom.wad +ln -s freedoom1.wad freedoomu.wad +ln -s freedoom2.wad freedoom.wad cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README |