|
1 | 1 | #!/bin/bash
|
2 | 2 |
|
3 |
| -# Copyright 2010-2021 Matteo Bernardini <[email protected]>, Pisa, Italy |
| 3 | +# Copyright 2010-2025 Matteo Bernardini <[email protected]>, Pisa, Italy |
4 | 4 | # based on the hollywoodb's one on 12.2 repository
|
5 | 5 | # All rights reserved.
|
6 | 6 | #
|
|
28 | 28 | cd $(dirname $0) ; CWD=$(pwd)
|
29 | 29 |
|
30 | 30 | PRGNAM=armagetronad
|
31 |
| -VERSION=${VERSION:-0.2.9.1.0} |
32 |
| -BUILD=${BUILD:-2} |
| 31 | +VERSION=${VERSION:-0.2.9.2.3} |
| 32 | +BUILD=${BUILD:-1} |
33 | 33 | TAG=${TAG:-_SBo}
|
34 | 34 | PKGTYPE=${PKGTYPE:-tgz}
|
35 | 35 |
|
@@ -81,9 +81,6 @@ find -L . \
|
81 | 81 |
|
82 | 82 | ./bootstrap.sh
|
83 | 83 |
|
84 |
| -# Fix wrong detection of libpng in configure |
85 |
| -sed -i 's|png_check_sig|png_sig_cmp|g' configure || exit 1 |
86 |
| - |
87 | 84 | # Using --disable-games since it peppers installation
|
88 | 85 | # paths with 'games' subdirectories and we're handling that manually.
|
89 | 86 | # --enable-useradd is used, but no user is created (see README)
|
@@ -123,25 +120,16 @@ cp -a AUTHORS COPYING NEWS README* $PKG/usr/doc/$PRGNAM-$VERSION
|
123 | 120 | cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
124 | 121 | rm -rf $PKG/etc/rc.d
|
125 | 122 |
|
126 |
| -# fix .desktop file and icons |
127 |
| -mkdir $PKG/usr/share/applications |
128 |
| -install -D -m 0644 desktop/$PRGNAM.desktop \ |
129 |
| - $PKG/usr/share/applications/$PRGNAM.desktop |
130 |
| -install -D -m 0644 desktop/icons/48x48/$PRGNAM.png \ |
131 |
| - $PKG/usr/share/pixmaps/$PRGNAM.png |
132 |
| -for i in 16 32 48 ; do |
133 |
| - install -D -m 0644 desktop/icons/${i}x${i}/$PRGNAM.png \ |
134 |
| - $PKG/usr/share/icons/hicolor/${i}x${i}/apps/ |
135 |
| -done |
136 |
| - |
137 | 123 | mkdir -p $PKG/install
|
138 | 124 | cat $CWD/slack-desc > $PKG/install/slack-desc
|
139 | 125 | cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
140 | 126 | # don't overwrite old configs
|
141 |
| -for config in aiplayers default settings settings_authentication settings_dedicated settings_visual ; do |
142 |
| - mv $PKG/etc/$PRGNAM/$config.cfg $PKG/etc/$PRGNAM/$config.cfg.new |
143 |
| - echo "config etc/$PRGNAM/$config.cfg.new" >> $PKG/install/doinst.sh |
| 127 | +cd $PKG/etc/$PRGNAM |
| 128 | +for config in *.cfg ; do |
| 129 | + mv ${config} ${config}.new |
| 130 | + echo "config etc/$PRGNAM/${config}.new" >> $PKG/install/doinst.sh |
144 | 131 | done
|
| 132 | +cd - |
145 | 133 |
|
146 | 134 | cd $PKG
|
147 | 135 | /sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
|
0 commit comments