1 # Maintainer: Anton Bazhenov <anton.bazhenov at gmail>
6 pkgdesc="Classical tetris game for X11"
8 url="http://happypenguin.org/show?XTetris"
10 depends=('xorg-server' 'libxaw' 'xbitmaps')
12 source=("http://www.ibiblio.org/pub/Linux/games/arcade/tetris/${pkgname}-${pkgver}.tar.gz")
13 md5sums=('9547dd17d0e53e295dd61f794b7acdb2')
16 cd "${srcdir}/${pkgname}-${pkgver}"
17 sed -i 's_$(LIBDIR)_/var/lib/X11_g' Imakefile
18 sed -i 's_$(INCDIR)_/usr/include/X11_g' Imakefile
19 sed -i 's_-UCOLOR > Xtetris.ad_-DCOLOR > Xtetris.ad_g' Imakefile
22 make depend || return 1
26 cd "${srcdir}/${pkgname}-${pkgver}"
27 make DESTDIR="${pkgdir}" install || return 1
28 install -Dm666 xtetris-scores "${pkgdir}/var/lib/X11/xtetris-scores"
29 install -Dm644 ${pkgname}.man "${pkgdir}/usr/share/man/man6/${pkgname}.6"
30 install -Dm644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
33 # vim:set ts=2 sw=2 et: