summaryrefslogtreecommitdiff
path: root/extra/tuxpuck/PKGBUILD
blob: aecbcdaa64b07238a5a49cb334512649ee87c7fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# $Id: PKGBUILD 148948 2012-02-05 11:57:19Z ibiru $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>

pkgname=tuxpuck
pkgver=0.8.2
pkgrel=5
pkgdesc="Airhockey with tux"
arch=('i686' 'x86_64')
url="http://home.no.net/munsuun/tuxpuck/"
license=('GPL2')
depends=('libjpeg' 'sdl' 'libpng' 'libvorbis')
makedepends=('freetype2')
options=('!makeflags')
source=("http://ftp.de.debian.org/debian/pool/main/t/${pkgname}/${pkgname}_$pkgver.orig.tar.gz"
        'tuxpuck-0.8.2-ldflags.patch'
        'tuxpuck-0.8.2-libpng15.patch')
md5sums=('fc839abc2b1f3eafae397e1ed6487079'
         'cb914d211bf3f519b7700fda180612b0'
         'a4da530d670a0c30ac0840aab1db0dca')

build() {
  cd $srcdir/$pkgname-$pkgver

  sed -i 's|usr/man|usr/share/man|' Makefile
  sed -i -e 's/-Werror//' \
         -e '/^CC/d' \
         Makefile \
         utils/Makefile \
         data/Makefile

  patch -Np0 -i "${srcdir}/tuxpuck-0.8.2-ldflags.patch"
  patch -Np0 -i "${srcdir}/tuxpuck-0.8.2-libpng15.patch"

  make
}

package() {
  cd $srcdir/$pkgname-$pkgver

  make DESTDIR=$pkgdir install
}