[arch-commits] Commit in bsd-games/trunk (PKGBUILD)
Date: Thursday, July 9, 2020 @ 13:03:21 Author: lcarlier Revision: 661814 upgpkg: bsd-games 3.0-2: remove conflict with fish Modified: bsd-games/trunk/PKGBUILD --+ PKGBUILD | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2020-07-09 12:39:28 UTC (rev 661813) +++ PKGBUILD2020-07-09 13:03:21 UTC (rev 661814) @@ -6,7 +6,7 @@ pkgname=bsd-games pkgver=3.0 -pkgrel=1 +pkgrel=2 pkgdesc='Linux port of the collection of BSD command line games' url='https://github.com/msharov/bsd-games' arch=('x86_64') @@ -17,6 +17,13 @@ source=("https://github.com/msharov/$pkgname/archive/v$pkgver.tar.gz";) sha256sums=('12401a025aaf2a035d55b5cd3401f677e0f5dab6b75673148c6e1a3f01bf92a9') +prepare() { + cd "$pkgname-$pkgver" + + # Remove conflict with fish + sed -i "s/FISH/GO-FISH/g; s/\.Nm fish/\.Nm go-fish/g" fish/fish.6 +} + build() { cd "$pkgname-$pkgver" @@ -32,5 +39,9 @@ chown -R root:games "${pkgdir}/var/lib/bsdgames" chmod 664 "${pkgdir}"/var/lib/bsdgames/* + # Remove conflict with fish + mv "${pkgdir}/usr/bin/fish" "${pkgdir}/usr/bin/go-fish" + mv "${pkgdir}/usr/share/man/man6/fish.6.gz" "${pkgdir}/usr/share/man/man6/go-fish.6.gz" + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" }
[arch-commits] Commit in bsd-games/trunk (PKGBUILD)
Date: Thursday, July 9, 2020 @ 07:28:03 Author: lcarlier Revision: 661796 upgpkg: bsd-games 3.0-1: Switch to release 3.0 Modified: bsd-games/trunk/PKGBUILD --+ PKGBUILD | 97 - 1 file changed, 13 insertions(+), 84 deletions(-) Modified: PKGBUILD === --- PKGBUILD2020-07-09 07:27:35 UTC (rev 661795) +++ PKGBUILD2020-07-09 07:28:03 UTC (rev 661796) @@ -5,72 +5,22 @@ # Contributor: SmackleFunky pkgname=bsd-games -pkgver=2.17 -pkgrel=18 +pkgver=3.0 +pkgrel=1 pkgdesc='Linux port of the collection of BSD command line games' -url='https://ibiblio.org/pub/linux/games/' +url='https://github.com/msharov/bsd-games' arch=('x86_64') install="$pkgname.install" -license=('BSD') -depends=('gcc-libs' 'words' 'sh') -makedepends=('flex' 'bison' 'm4') -source=("https://ibiblio.org/pub/linux/games/$pkgname-$pkgver.tar.gz"; -config.params stdio.h.diff gamescreen.h.diff getline.diff -number.c.diff bsd-games-2.17-64bit.patch -bad-ntohl-cast.diff null-check.diff) -md5sums=('238a38a3a017ca9b216fc42bde405639' - '2ea80281ee9993a9ee47323e78349a2a' - '784f68c796b9e099ac008aecef1af998' - '9c0fa6e2345bd0a7945c9a41d5ba68aa' - '5356bd6999ae53dd27cb2a0f837a3e70' - '47249a90f38ccb4dd07625b245bbc728' - '257813b76a41c8b2c02701571c804227' - '3d21a9dad2e603ddf3842972e4ff85a1' - 'a43ca0b4b9ebc4eec26372c52014ac0a') +license=('custom') +depends=() +makedepends=() +source=("https://github.com/msharov/$pkgname/archive/v$pkgver.tar.gz";) +sha256sums=('12401a025aaf2a035d55b5cd3401f677e0f5dab6b75673148c6e1a3f01bf92a9') -prepare() { - cd "$pkgname-$pkgver" - - [ "$CARCH" = "x86_64" ] && patch -p1 < "$srcdir/bsd-games-2.17-64bit.patch" - cp "${srcdir}/config.params" . - - # Several games use their own internal functions named getline. All - # are different, and none is the getline from glibc. So we need a patch - # in order to compile. Each internal getline function is prefixed - # with the name of the game. -- Chris Brannon - patch -p1 -i "${srcdir}/getline.diff" - - patch -p1 -i "${srcdir}/stdio.h.diff" - patch -p1 -i "${srcdir}/gamescreen.h.diff" - - # Incorporated some fixes from Debian - patch -p1 -i "${srcdir}/number.c.diff" - # ntohl returns uint32_t, not unsigned long: - patch -p1 -i "${srcdir}/bad-ntohl-cast.diff" - # And add a NULL pointer check to the "hunt" program, fixing a segfault. - patch -p1 -i "${srcdir}/null-check.diff" - - sed -i "s/FISH/GO-FISH/g; s/\.Nm fish/\.Nm go-fish/g" fish/fish.6 - sed -i "s/tenths/tenth/g" tests/number.-0.1 - sed -i "s/Elegy{ Written in a Country Church{-| }Yard:/Elegy{ Written in a Country Church{-| }Yard}:/g" \ - quiz/datfiles/poetry - sed -i "s/\.tI friend/\.It friend/g" hunt/hunt/hunt.6.in - sed -i "s/it\'s initial/its initial/g" backgammon/teachgammon/ttext1.c - sed -i "s/two player\'s/two players/g" backgammon/teachgammon/ttext2.c - sed -i "s/\.I range/\.It range/g" arithmetic/arithmetic.6 - sed -i "s/game were the/game where the/g" gomoku/gomoku.6 - - # The wargames script expects binaries in /usr/games, and this - # path is hard-coded. - # Prior to release 2.17-10 of the ArchLinux package, wargames was - # broken, since binaries are in /usr/bin instead. - sed -i -e 's|/usr/games|/usr/bin|g' wargames/wargames -} - build() { cd "$pkgname-$pkgver" - ./configure + ./configure --prefix=/usr make } @@ -77,31 +27,10 @@ package() { cd "$pkgname-$pkgver" - sed -i "s%PKGDIR%$pkgdir%g" hide-game install-man install-score Makeconfig subst.sed - make install - # This make install command does install to $pkgdir, because of the - # change to config.params in the build function. - - # Fix permissions - rmdir "${pkgdir}/tmp" - install -dm755 "${pkgdir}/usr/share/bsdgames/data/hack/save" + make DESTDIR="${pkgdir}" install + chown -R root:games "${pkgdir}/var/lib/bsdgames" chmod 664 "${pkgdir}"/var/lib/bsdgames/* - chmod 664 "${pkgdir}"/var/lib/bsdgames/{hack,phantasia}/* - chmod 775 "${pkgdir}"/var/lib/bsdgames/{hack,phantasia} - - # Remove conflict with xscreensaver and fish - mv "${pkgdir}/usr/bin/fish" "${pkgdir}/usr/bin/go-fish" - mv "${pkgdir}/usr/share/man/man6/fish.6.gz" "${pkgdir}/usr/share/man/man6/go-fish.6.gz" - mv "${pkgdir}/usr/share/man/man6/worm.6.gz" \ -"${pkgdir}/usr/share/man/man6/worm-game.6.gz" - - # Install documentation and license - install -dm755 "$pkgdir/usr/share/doc/bsd-games" - install -m644 AUTHORS NEWS BUGS ChangeLog "$pkgdir/usr/share/doc/$pkgname" \ - - rm "${pkgdir}/usr/share/doc/trek.me" - install -D -m644 COPYING "${pkgdir}/usr/share/licenses/$pkgname/COPYING" + + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" } - -# vim:set ts=2 sw=2 et:
[arch-commits] Commit in bsd-games/trunk (PKGBUILD)
Date: Monday, May 27, 2019 @ 20:45:50 Author: arojas Revision: 472028 https Modified: bsd-games/trunk/PKGBUILD --+ PKGBUILD |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Modified: PKGBUILD === --- PKGBUILD2019-05-27 20:45:45 UTC (rev 472027) +++ PKGBUILD2019-05-27 20:45:50 UTC (rev 472028) @@ -8,13 +8,13 @@ pkgver=2.17 pkgrel=18 pkgdesc='Linux port of the collection of BSD command line games' -url='http://ibiblio.org/pub/linux/games/' +url='https://ibiblio.org/pub/linux/games/' arch=('x86_64') install="$pkgname.install" license=('BSD') depends=('gcc-libs' 'words' 'sh') makedepends=('flex' 'bison' 'm4') -source=("http://ibiblio.org/pub/linux/games/$pkgname-$pkgver.tar.gz"; +source=("https://ibiblio.org/pub/linux/games/$pkgname-$pkgver.tar.gz"; config.params stdio.h.diff gamescreen.h.diff getline.diff number.c.diff bsd-games-2.17-64bit.patch bad-ntohl-cast.diff null-check.diff)
[arch-commits] Commit in bsd-games/trunk (PKGBUILD)
Date: Friday, November 9, 2018 @ 23:20:33 Author: felixonmars Revision: 405251 PIE/BUILDINFO rebuild Modified: bsd-games/trunk/PKGBUILD --+ PKGBUILD |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2018-11-09 23:20:32 UTC (rev 405250) +++ PKGBUILD2018-11-09 23:20:33 UTC (rev 405251) @@ -6,7 +6,7 @@ pkgname=bsd-games pkgver=2.17 -pkgrel=17 +pkgrel=18 pkgdesc='Linux port of the collection of BSD command line games' url='http://ibiblio.org/pub/linux/games/' arch=('x86_64')
[arch-commits] Commit in bsd-games/trunk (PKGBUILD)
Date: Thursday, September 22, 2016 @ 15:09:44 Author: arodseth Revision: 190159 upgpkg: bsd-games 2.17-17 Modified: bsd-games/trunk/PKGBUILD --+ PKGBUILD | 40 ++-- 1 file changed, 22 insertions(+), 18 deletions(-) Modified: PKGBUILD === --- PKGBUILD2016-09-22 14:54:15 UTC (rev 190158) +++ PKGBUILD2016-09-22 15:09:44 UTC (rev 190159) @@ -1,19 +1,21 @@ # $Id$ -# Maintainer: Chris Brannon +# Maintainer: Laurent Carlier +# Contributor: Alexander F Rødseth +# Contributor: Chris Brannon # Contributor: Abhishek Dasgupta # Contributor: SmackleFunky pkgname=bsd-games pkgver=2.17 -pkgrel=16 -pkgdesc="A linux port for a collection of BSD command line games." -url="http://ftp.ibiblio.org/pub/Linux/games/"; -arch=('i686' 'x86_64') -install=$pkgname.install +pkgrel=17 +pkgdesc='Linux port of the collection of BSD command line games' +url='http://ibiblio.org/pub/linux/games/' +arch=('x86_64' 'i686') +install="$pkgname.install" license=('BSD') -depends=(gcc-libs words sh) +depends=('gcc-libs' 'words' 'sh') makedepends=('flex' 'bison' 'm4') -source=(http://ftp.ibiblio.org/pub/Linux/games/$pkgname-$pkgver.tar.gz +source=("http://ibiblio.org/pub/linux/games/$pkgname-$pkgver.tar.gz"; config.params stdio.h.diff gamescreen.h.diff getline.diff number.c.diff bsd-games-2.17-64bit.patch bad-ntohl-cast.diff null-check.diff) @@ -28,7 +30,7 @@ 'a43ca0b4b9ebc4eec26372c52014ac0a') prepare() { - cd "${srcdir}/$pkgname-$pkgver" + cd "$pkgname-$pkgver" [ "$CARCH" = "x86_64" ] && patch -p1 < "$srcdir/bsd-games-2.17-64bit.patch" cp "${srcdir}/config.params" . @@ -42,11 +44,11 @@ patch -p1 -i "${srcdir}/stdio.h.diff" patch -p1 -i "${srcdir}/gamescreen.h.diff" -# Incorporated some fixes from Debian + # Incorporated some fixes from Debian patch -p1 -i "${srcdir}/number.c.diff" -# ntohl returns uint32_t, not unsigned long: + # ntohl returns uint32_t, not unsigned long: patch -p1 -i "${srcdir}/bad-ntohl-cast.diff" -# And add a NULL pointer check to the "hunt" program, fixing a segfault. + # And add a NULL pointer check to the "hunt" program, fixing a segfault. patch -p1 -i "${srcdir}/null-check.diff" sed -i "s/FISH/GO-FISH/g; s/\.Nm fish/\.Nm go-fish/g" fish/fish.6 @@ -67,7 +69,7 @@ } build() { - cd "${srcdir}/$pkgname-$pkgver" + cd "$pkgname-$pkgver" ./configure make @@ -74,13 +76,14 @@ } package() { - cd "${srcdir}/$pkgname-$pkgver" + cd "$pkgname-$pkgver" + sed -i "s%PKGDIR%$pkgdir%g" hide-game install-man install-score Makeconfig subst.sed make install # This make install command does install to $pkgdir, because of the # change to config.params in the build function. -# Fix permissions + # Fix permissions rmdir "${pkgdir}/tmp" install -dm755 "${pkgdir}/usr/share/bsdgames/data/hack/save" chown -R root:games "${pkgdir}/var/lib/bsdgames" @@ -88,17 +91,18 @@ chmod 664 "${pkgdir}"/var/lib/bsdgames/{hack,phantasia}/* chmod 775 "${pkgdir}"/var/lib/bsdgames/{hack,phantasia} -# Remove conflict with xscreensaver and fish + # Remove conflict with xscreensaver and fish mv "${pkgdir}/usr/bin/fish" "${pkgdir}/usr/bin/go-fish" mv "${pkgdir}/usr/share/man/man6/fish.6.gz" "${pkgdir}/usr/share/man/man6/go-fish.6.gz" mv "${pkgdir}/usr/share/man/man6/worm.6.gz" \ "${pkgdir}/usr/share/man/man6/worm-game.6.gz" -# Install documentation and license + # Install documentation and license install -dm755 "$pkgdir/usr/share/doc/bsd-games" install -m644 AUTHORS NEWS BUGS ChangeLog "$pkgdir/usr/share/doc/$pkgname" \ - + rm "${pkgdir}/usr/share/doc/trek.me" install -D -m644 COPYING "${pkgdir}/usr/share/licenses/$pkgname/COPYING" } +# vim:set ts=2 sw=2 et:
[arch-commits] Commit in bsd-games/trunk (PKGBUILD)
Date: Saturday, December 5, 2015 @ 19:51:36 Author: bluewind Revision: 148678 C++11 ABI rebuild Modified: bsd-games/trunk/PKGBUILD --+ PKGBUILD |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2015-12-05 18:49:33 UTC (rev 148677) +++ PKGBUILD2015-12-05 18:51:36 UTC (rev 148678) @@ -5,7 +5,7 @@ pkgname=bsd-games pkgver=2.17 -pkgrel=15 +pkgrel=16 pkgdesc="A linux port for a collection of BSD command line games." url="http://ftp.ibiblio.org/pub/Linux/games/"; arch=('i686' 'x86_64')
[arch-commits] Commit in bsd-games/trunk (PKGBUILD)
Date: Saturday, December 5, 2015 @ 19:49:33 Author: arojas Revision: 148677 Switch to http source Modified: bsd-games/trunk/PKGBUILD --+ PKGBUILD |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Modified: PKGBUILD === --- PKGBUILD2015-12-05 18:46:50 UTC (rev 148676) +++ PKGBUILD2015-12-05 18:49:33 UTC (rev 148677) @@ -7,13 +7,13 @@ pkgver=2.17 pkgrel=15 pkgdesc="A linux port for a collection of BSD command line games." -url="ftp://ftp.ibiblio.org/pub/Linux/games/"; +url="http://ftp.ibiblio.org/pub/Linux/games/"; arch=('i686' 'x86_64') install=$pkgname.install license=('BSD') depends=(gcc-libs words sh) makedepends=('flex' 'bison' 'm4') -source=(ftp://ftp.ibiblio.org/pub/Linux/games/$pkgname-$pkgver.tar.gz +source=(http://ftp.ibiblio.org/pub/Linux/games/$pkgname-$pkgver.tar.gz config.params stdio.h.diff gamescreen.h.diff getline.diff number.c.diff bsd-games-2.17-64bit.patch bad-ntohl-cast.diff null-check.diff)
[arch-commits] Commit in bsd-games/trunk (PKGBUILD)
Date: Sunday, September 6, 2015 @ 20:27:55 Author: foutrelis Revision: 139303 ncurses 6.0 rebuild. Modified: bsd-games/trunk/PKGBUILD --+ PKGBUILD |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2015-09-06 18:26:44 UTC (rev 139302) +++ PKGBUILD2015-09-06 18:27:55 UTC (rev 139303) @@ -5,7 +5,7 @@ pkgname=bsd-games pkgver=2.17 -pkgrel=14 +pkgrel=15 pkgdesc="A linux port for a collection of BSD command line games." url="ftp://ftp.ibiblio.org/pub/Linux/games/"; arch=('i686' 'x86_64')
[arch-commits] Commit in bsd-games/trunk (PKGBUILD config.params)
Date: Thursday, May 16, 2013 @ 11:12:04 Author: lcarlier Revision: 90950 upgpkg: bsd-games 2.17-14 Move huntd to /usr/bin Modified: bsd-games/trunk/PKGBUILD bsd-games/trunk/config.params ---+ PKGBUILD | 12 config.params |2 +- 2 files changed, 9 insertions(+), 5 deletions(-) Modified: PKGBUILD === --- PKGBUILD2013-05-16 06:57:01 UTC (rev 90949) +++ PKGBUILD2013-05-16 09:12:04 UTC (rev 90950) @@ -5,7 +5,7 @@ pkgname=bsd-games pkgver=2.17 -pkgrel=13 +pkgrel=14 pkgdesc="A linux port for a collection of BSD command line games." url="ftp://ftp.ibiblio.org/pub/Linux/games/"; arch=('i686' 'x86_64') @@ -18,7 +18,7 @@ number.c.diff bsd-games-2.17-64bit.patch bad-ntohl-cast.diff null-check.diff) md5sums=('238a38a3a017ca9b216fc42bde405639' - '9916baef5cb8aa09361f67de12ca7bef' + '2ea80281ee9993a9ee47323e78349a2a' '784f68c796b9e099ac008aecef1af998' '9c0fa6e2345bd0a7945c9a41d5ba68aa' '5356bd6999ae53dd27cb2a0f837a3e70' @@ -27,8 +27,9 @@ '3d21a9dad2e603ddf3842972e4ff85a1' 'a43ca0b4b9ebc4eec26372c52014ac0a') -build() { +prepare() { cd "${srcdir}/$pkgname-$pkgver" + [ "$CARCH" = "x86_64" ] && patch -p1 < "$srcdir/bsd-games-2.17-64bit.patch" cp "${srcdir}/config.params" . @@ -63,8 +64,11 @@ # Prior to release 2.17-10 of the ArchLinux package, wargames was # broken, since binaries are in /usr/bin instead. sed -i -e 's|/usr/games|/usr/bin|g' wargames/wargames +} -# Build. +build() { + cd "${srcdir}/$pkgname-$pkgver" + ./configure make } Modified: config.params === --- config.params 2013-05-16 06:57:01 UTC (rev 90949) +++ config.params 2013-05-16 09:12:04 UTC (rev 90950) @@ -2,7 +2,7 @@ bsd_games_cfg_install_prefix=PKGDIR bsd_games_cfg_no_build_dirs='banner fortune wtf factor monop' bsd_games_cfg_gamesdir=/usr/bin -bsd_games_cfg_sbindir=/usr/sbin +bsd_games_cfg_sbindir=/usr/bin bsd_games_cfg_man6dir=/usr/share/man/man6 bsd_games_cfg_man5dir=/usr/share/man/man5 bsd_games_cfg_man8dir=/usr/share/man/man8
[arch-commits] Commit in bsd-games/trunk (PKGBUILD)
Date: Friday, March 22, 2013 @ 03:12:12 Author: eric Revision: 86787 Remove pkgdir reference in build function Modified: bsd-games/trunk/PKGBUILD --+ PKGBUILD | 22 ++ 1 file changed, 10 insertions(+), 12 deletions(-) Modified: PKGBUILD === --- PKGBUILD2013-03-22 01:03:43 UTC (rev 86786) +++ PKGBUILD2013-03-22 02:12:12 UTC (rev 86787) @@ -17,15 +17,21 @@ config.params stdio.h.diff gamescreen.h.diff getline.diff number.c.diff bsd-games-2.17-64bit.patch bad-ntohl-cast.diff null-check.diff) +md5sums=('238a38a3a017ca9b216fc42bde405639' + '9916baef5cb8aa09361f67de12ca7bef' + '784f68c796b9e099ac008aecef1af998' + '9c0fa6e2345bd0a7945c9a41d5ba68aa' + '5356bd6999ae53dd27cb2a0f837a3e70' + '47249a90f38ccb4dd07625b245bbc728' + '257813b76a41c8b2c02701571c804227' + '3d21a9dad2e603ddf3842972e4ff85a1' + 'a43ca0b4b9ebc4eec26372c52014ac0a') build() { cd "${srcdir}/$pkgname-$pkgver" [ "$CARCH" = "x86_64" ] && patch -p1 < "$srcdir/bsd-games-2.17-64bit.patch" cp "${srcdir}/config.params" . -# Patches - sed -i "s%PKGDIR%$pkgdir%" config.params - # Several games use their own internal functions named getline. All # are different, and none is the getline from glibc. So we need a patch # in order to compile. Each internal getline function is prefixed @@ -65,6 +71,7 @@ package() { cd "${srcdir}/$pkgname-$pkgver" + sed -i "s%PKGDIR%$pkgdir%g" hide-game install-man install-score Makeconfig subst.sed make install # This make install command does install to $pkgdir, because of the # change to config.params in the build function. @@ -91,12 +98,3 @@ install -D -m644 COPYING "${pkgdir}/usr/share/licenses/$pkgname/COPYING" } -md5sums=('238a38a3a017ca9b216fc42bde405639' - '9916baef5cb8aa09361f67de12ca7bef' - '784f68c796b9e099ac008aecef1af998' - '9c0fa6e2345bd0a7945c9a41d5ba68aa' - '5356bd6999ae53dd27cb2a0f837a3e70' - '47249a90f38ccb4dd07625b245bbc728' - '257813b76a41c8b2c02701571c804227' - '3d21a9dad2e603ddf3842972e4ff85a1' - 'a43ca0b4b9ebc4eec26372c52014ac0a')