diff options
author | B. Watson <yalhcru@gmail.com> | 2014-08-28 21:34:40 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-08-30 14:19:24 +0700 |
commit | 079fa233e10d595b7cf5326347c432f4444a786a (patch) | |
tree | c6f72db549e1c9936e55d76dc3ee85b76dec234f /system/sdl-jstest/sdl-jstest.SlackBuild | |
parent | 8c82d8bbf62b25ad9597f65874486abfd5c42cc2 (diff) | |
download | slackbuilds-079fa233e10d595b7cf5326347c432f4444a786a.tar.gz |
system/sdl-jstest: Updated for version 20140814git.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/sdl-jstest/sdl-jstest.SlackBuild')
-rw-r--r-- | system/sdl-jstest/sdl-jstest.SlackBuild | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/system/sdl-jstest/sdl-jstest.SlackBuild b/system/sdl-jstest/sdl-jstest.SlackBuild index 853901e1d5..69acb531b0 100644 --- a/system/sdl-jstest/sdl-jstest.SlackBuild +++ b/system/sdl-jstest/sdl-jstest.SlackBuild @@ -22,8 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20140828 bkw: +# - updated for latest git +# - upstream now supports both sdl1 and sdl2, build for sdl2 only +# if installed + PRGNAM=sdl-jstest -VERSION=${VERSION:-20110416git} +VERSION=${VERSION:-20140814git} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -56,6 +61,9 @@ fi set -e +# if SDL2 is available, this will be built too. +PRGNAM2=sdl2-jstest + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP @@ -69,18 +77,23 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -make CC="gcc $SLKCFLAGS" +TARGETS="$PRGNAM $PRGNAM.1" +pkg-config --exists sdl2 && TARGETS="$TARGETS $PRGNAM2 $PRGNAM2.1" + +make $TARGETS CC="gcc $SLKCFLAGS" -install -D $PRGNAM $PKG/usr/bin/$PRGNAM -strip --strip-unneeded $PKG/usr/bin/$PRGNAM 2> /dev/null +PKGBIN=$PKG/usr/bin/ +mkdir -p $PKGBIN +install -s -m0755 $PRGNAM $PKGBIN +[ -e sdl2-jstest ] && install -s -m0755 $PRGNAM2 $PKGBIN -mkdir -p $PKG/usr/man/man1 -cat $PRGNAM.1 | gzip -9 > $PKG/usr/man/man1/$PRGNAM.1.gz +PKGMAN1=$PKG/usr/man/man1 +mkdir -p $PKGMAN1 +gzip -9c $PRGNAM.1 > $PKGMAN1/$PRGNAM.1.gz +[ -e sdl2-jstest ] && gzip -9c $PRGNAM2.1 > $PKGMAN1/$PRGNAM2.1.gz mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - README \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |