summaryrefslogtreecommitdiff
path: root/extra/foobillard++/PKGBUILD
blob: bfc8d10b0973847438c30d576b991c32427fb323 (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
# $Id: PKGBUILD 141931 2011-11-03 08:55:49Z eric $
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=foobillard++
pkgver=3.41beta
pkgrel=1
pkgdesc="An OpenGL billiard game"
arch=('i686' 'x86_64')
url="http://foobillardplus.sourceforge.net/"
license=('GPL2')
depends=('bzip2' 'freetype2' 'libpng' 'mesa' 'sdl_net')
replaces=('foobillard')
source=(http://downloads.sourceforge.net/foobillardplus/foobillardplus-${pkgver}.tar.gz)
sha1sums=('41d6db473557386ffeacd98b9a2ee26198e42c6a')

build() {
  cd "${srcdir}/foobillardplus-${pkgver}"
  sed -i 's|$prefix/foobillardplus|$prefix|' configure
  sed -i 's|$prefix/data|$prefix/share/foobillardplus|' configure
  sed -i 's|"/data"|"/share/foobillardplus"|' src/language.c
  sed -i 's|/opt/foobillardplus/bin/||' foobillardplus.desktop
  sed -i 's|/opt/foobillardplus/||' foobillardplus.desktop
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/foobillardplus-${pkgver}"
  install -Dm755 src/foobillardplus "${pkgdir}/usr/bin/foobillardplus"
  install -d "${pkgdir}/usr/share/foobillardplus"
  cp -R data/* "${pkgdir}/usr/share/foobillardplus"
  install -Dm644 foobillardplus.desktop "${pkgdir}/usr/share/applications/foobillardplus.desktop"
  install -Dm644 foobillardplus.png "${pkgdir}/usr/share/pixmaps/foobillardplus.png"
  install -Dm644 foobillardplus.xbm "${pkgdir}/usr/share/pixmaps/foobillardplus.xbm"
  find "${pkgdir}" -depth  -type d -name .svn -exec rm -rf  {} \;
}