diff options
author | Brian Bidulock | 2015-06-10 23:51:20 -0600 |
---|---|---|
committer | Brian Bidulock | 2015-06-10 23:51:20 -0600 |
commit | d31100bb30f1587561913e86a544f6d0956e7581 (patch) | |
tree | 0a358e416fa9339395c886485747fb4d9f81c5dd | |
download | aur-d31100bb30f1587561913e86a544f6d0956e7581.tar.gz |
initial version
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 50 | ||||
-rw-r--r-- | xtetris.desktop | 8 | ||||
-rw-r--r-- | xtetris.install | 7 | ||||
-rw-r--r-- | xtetris.patch | 49 | ||||
-rw-r--r-- | xtetris.png | bin | 0 -> 855 bytes |
6 files changed, 137 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f159f71f4214 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = xtetris + pkgdesc = A classical tetris game for X11 + pkgver = 2.6 + pkgrel = 2 + url = http://happypenguin.org/show?XTetris + install = xtetris.install + arch = i686 + arch = x86_64 + license = custom + makedepends = imake + depends = libxaw + depends = xbitmaps + source = http://www.ibiblio.org/pub/Linux/games/arcade/tetris/xtetris-2.6.tar.gz + source = xtetris.patch + source = xtetris.png + source = xtetris.desktop + md5sums = 9547dd17d0e53e295dd61f794b7acdb2 + md5sums = 50f4ac4b36845da03e2a7e3757696a2c + md5sums = 98f0495078541db455b5fc5da896b83b + md5sums = ebdda0c5f9dfd764cbc59e77a6f664b8 + +pkgname = xtetris + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7f3f6c95cdf6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Anton Bazhenov <anton.bazhenov at gmail> + +pkgname=xtetris +pkgver=2.6 +pkgrel=2 +pkgdesc="A classical tetris game for X11" +arch=('i686' 'x86_64') +url="http://happypenguin.org/show?XTetris" +license=('custom') +depends=('libxaw' 'xbitmaps') +makedepends=('imake') +install="${pkgname}.install" +source=("http://www.ibiblio.org/pub/Linux/games/arcade/tetris/${pkgname}-${pkgver}.tar.gz" + "${pkgname}.patch" + "${pkgname}.png" + "${pkgname}.desktop") +md5sums=('9547dd17d0e53e295dd61f794b7acdb2' + '50f4ac4b36845da03e2a7e3757696a2c' + '98f0495078541db455b5fc5da896b83b' + 'ebdda0c5f9dfd764cbc59e77a6f664b8') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + patch -Np1 -i "../${pkgname}.patch" + xmkmf + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + + # Install game files + make DESTDIR="${pkgdir}" \ + ETCX11DIR="/usr/share/X11" \ + LIBDIR="/usr/share/${pkgname}" \ + MANDIR="/usr/share/man/man6/" \ + MANSUFFIX=6 \ + SCOREFLAGS="-m664 -g games" \ + install install.man + + # Install pixmap and .desktop file + install -Dm644 "../${pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png" + install -Dm644 "../${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop" + + # Install readme and license + install -Dm644 README "${pkgdir}/usr/share/doc/${pkgname}/README" + install -Dm644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" +} + +# vim:set ts=2 sw=2 et: diff --git a/xtetris.desktop b/xtetris.desktop new file mode 100644 index 000000000000..69da5bdbb548 --- /dev/null +++ b/xtetris.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Name=Xtetris +Comment=A classical tetris game for X11 +Exec=xtetris +Icon=xtetris.png +Terminal=false +Categories=Game;BlocksGame; diff --git a/xtetris.install b/xtetris.install new file mode 100644 index 000000000000..8ff19e052b76 --- /dev/null +++ b/xtetris.install @@ -0,0 +1,7 @@ +post_install() { + echo " > You need to be in the 'games' group to use the scores file." +} + +post_upgrade() { + post_install +} diff --git a/xtetris.patch b/xtetris.patch new file mode 100644 index 000000000000..a58ebd079fee --- /dev/null +++ b/xtetris.patch @@ -0,0 +1,49 @@ +--- xtetris-2.6.orig/Imakefile 1992-10-19 23:06:07.000000000 +0500 ++++ xtetris-2.6/Imakefile 2012-03-02 12:40:31.887443450 +0600 +@@ -1,15 +1,15 @@ + /* Search for "COLOR" if you want xtetris to run on a color monitor by + default */ + +-#define ScoreDir $(LIBDIR) /* Directory for the score file. */ ++#define ScoreDir /var/lib/xtetris /* Directory for the score file. */ + #define ScoreFile xtetris-scores/* Filename for the score file. */ +-#define BitmapDir $(INCDIR)/bitmaps /* May need to change this to ++#define BitmapDir /usr/include/X11/bitmaps /* May need to change this to + /usr/include/X11/bitmaps, if you get a + message like "can't convert string + 'stripe4' to pixmap." */ + + BITMAPS = stripe4 +- DEFINES = -DHIGH_SCORE_TABLE=\"$(LIBDIR)/xtetris-scores\" ++ DEFINES = -DHIGH_SCORE_TABLE=\"/var/lib/xtetris/xtetris-scores\" + HEADERS = defs.h + SRCS = main.c init.c shape.c support.c notify.c window.c score.c\ + draw.c +@@ -43,6 +43,6 @@ + "-DCOLOR". */ + + Xtetris.ad: Xtetris.ad.all +- xrdb -n Xtetris.ad.all -UCOLOR > Xtetris.ad ++ xrdb -n Xtetris.ad.all -DCOLOR > Xtetris.ad + clean:: + $(RM) Xtetris.c.ad Xtetris.bw.ad Xtetris.ad +--- xtetris-2.6.orig/Xtetris.ad.all 1995-02-11 11:38:29.000000000 +0500 ++++ xtetris-2.6/Xtetris.ad.all 2012-03-02 12:14:45.140768040 +0600 +@@ -2,7 +2,7 @@ + ?.baseTranslations: #override <Unmap>:Pause() + *Background: black + *BorderColor: white +-*Font: -*-helvetica-bold-r-*-*-*-120-*-*-*-*-*-* ++*Font: -*-*-bold-r-*-*-*-120-*-*-*-*-*-* + *Frame*sensitive: true + *Frame.Buttons*width: 80 + *NewGame.fromVert: Start +@@ -86,7 +86,7 @@ + *Status.right: ChainRight + *Status.vertDistance: 175 + *Status.width: 100 +-*TitleBar.Font: -*-new century schoolbook-*-i-*-*-*-120-*-*-*-*-*-* ++*TitleBar.Font: -*-*-*-i-*-*-*-120-*-*-*-*-*-* + *TitleBar.Label: XTETRIS 2.6 + *TitleBar.foreground: white + *TitleBar.height: 20 diff --git a/xtetris.png b/xtetris.png Binary files differnew file mode 100644 index 000000000000..5d784571bf59 --- /dev/null +++ b/xtetris.png |