updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / xtetris / PKGBUILD
blob0af1f72e15dad9411d90f2e11d7eb21291d19cb4
1 # Maintainer: Anton Bazhenov <anton.bazhenov at gmail>
3 pkgname=xtetris
4 pkgver=2.6
5 pkgrel=1
6 pkgdesc="Classical tetris game for X11"
7 arch=('i686' 'x86_64')
8 url="http://happypenguin.org/show?XTetris"
9 license=('custom')
10 depends=('xorg-server' 'libxaw' 'xbitmaps')
11 makedepends=('imake')
12 source=("http://www.ibiblio.org/pub/Linux/games/arcade/tetris/${pkgname}-${pkgver}.tar.gz")
13 md5sums=('9547dd17d0e53e295dd61f794b7acdb2')
15 build() {
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
20   xmkmf || return 1
21   make || return 1
22   make depend || return 1
25 package() {
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: