Merge pull request #3430 from bra1nwave/vitetris
New package: vitetris-0.57
This commit is contained in:
commit
8e34ba9624
4 changed files with 67 additions and 0 deletions
7
srcpkgs/vitetris/INSTALL
Normal file
7
srcpkgs/vitetris/INSTALL
Normal file
|
@ -0,0 +1,7 @@
|
|||
case "${ACTION}" in
|
||||
post)
|
||||
touch var/games/vitetris/hiscores
|
||||
chown root:users var/games/vitetris/hiscores
|
||||
chmod 0664 var/games/vitetris/hiscores
|
||||
;;
|
||||
esac
|
34
srcpkgs/vitetris/patches/Makefile.patch
Normal file
34
srcpkgs/vitetris/patches/Makefile.patch
Normal file
|
@ -0,0 +1,34 @@
|
|||
--- Makefile.orig
|
||||
+++ Makefile
|
||||
@@ -1,9 +1,9 @@
|
||||
include config.mk
|
||||
|
||||
-PROGNAME = tetris$(EXE)
|
||||
+PROGNAME = vitetris$(EXE)
|
||||
|
||||
# Uncomment to change the default. (Only used in Unix-like systems.)
|
||||
-#HISCORE_FILENAME = /var/games/vitetris-hiscores
|
||||
+HISCORE_FILENAME = /var/games/vitetris/hiscores
|
||||
|
||||
INSTALL = install -oroot -groot
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
install: $(PROGNAME)
|
||||
$(INSTALL) -d $(DESTDIR)$(bindir) $(DESTDIR)$(docdir)
|
||||
$(INSTALL) -m755 $(PROGNAME) $(DESTDIR)$(bindir)
|
||||
- $(INSTALL) -m644 README licence.txt $(DESTDIR)$(docdir)
|
||||
+ $(INSTALL) -m644 README $(DESTDIR)$(docdir)
|
||||
if [ -n "$(pixmapdir)" ]; then \
|
||||
$(INSTALL) -d $(DESTDIR)$(pixmapdir) && \
|
||||
$(INSTALL) -m644 vitetris.xpm $(DESTDIR)$(pixmapdir); fi
|
||||
--- src/config2.h.orig
|
||||
+++ src/config2.h
|
||||
@@ -15,7 +15,7 @@
|
||||
#endif
|
||||
|
||||
#if UNIX
|
||||
-#define CONFIG_FILENAME ".vitetris"
|
||||
+#define CONFIG_FILENAME ".config/vitetris"
|
||||
#else
|
||||
#define CONFIG_FILENAME "vitetris.cfg"
|
||||
#endif
|
8
srcpkgs/vitetris/patches/fix-systest.patch
Normal file
8
srcpkgs/vitetris/patches/fix-systest.patch
Normal file
|
@ -0,0 +1,8 @@
|
|||
--- systest.mk.orig
|
||||
+++ systest.mk
|
||||
@@ -1,4 +1,4 @@
|
||||
systest: systest.c
|
||||
- $(CC) -o systest $(CFLAGS) $(CPPFLAGS) systest.c
|
||||
+ $(CC_FOR_BUILD) $(XBPS_CFLAGS) -o systest systest.c
|
||||
clean:
|
||||
rm -f systest systest.exe
|
18
srcpkgs/vitetris/template
Normal file
18
srcpkgs/vitetris/template
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Template file for 'vitetris'
|
||||
pkgname=vitetris
|
||||
version=0.57
|
||||
revision=1
|
||||
build_style=configure
|
||||
configure_args="--prefix=/usr --with-ncurses --without-x"
|
||||
make_dirs="/var/games/vitetris 0755 root users"
|
||||
makedepends="ncurses-devel"
|
||||
short_desc="Terminal-based Tetris clone"
|
||||
maintainer="bra1nwave <brainwave@openmailbox.org>"
|
||||
license="BSD"
|
||||
homepage="http://www.victornils.net/tetris/"
|
||||
distfiles="http://www.victornils.net/tetris/${pkgname}-${version}.tar.gz"
|
||||
checksum=0c9fa6c8b16e2f8968f65e16a87f1bcd39b827d510c6efb0771f0400ab91cdc2
|
||||
|
||||
post_install() {
|
||||
vlicense licence.txt LICENSE
|
||||
}
|
Loading…
Reference in a new issue