extra/foobillard++ to 3.42beta-6

This commit is contained in:
Kevin Mihelich 2018-06-05 23:22:01 +00:00
parent 0f7fb6e9ef
commit c938f97828

View file

@ -6,13 +6,12 @@
pkgname=foobillard++
pkgver=3.42beta
pkgrel=5
pkgrel=6
pkgdesc="An OpenGL billiard game"
arch=('i686' 'x86_64')
arch=('x86_64')
url="http://foobillardplus.sourceforge.net/"
license=('GPL2')
depends=('freetype2' 'libpng' 'glu' 'sdl_net' 'sdl_mixer')
makedepends=('mesa')
replaces=('foobillard')
source=(http://downloads.sourceforge.net/foobillardplus/foobillardplus-${pkgver}.tar.gz)
sha1sums=('51507efab0f595cfff26149003faf669c0a42f32')
@ -21,6 +20,8 @@ prepare() {
cd foobillardplus-${pkgver}
sed -i 's|/opt/foobillardplus/bin/||' foobillardplus.desktop
sed -i 's|/opt/foobillardplus/||' foobillardplus.desktop
sed -e 's|freetype-config|pkg-config freetype2|g' -i src/Makefile.am
sed -e 's|inline float|float|g' -i src/vmath.*
}
build() {
@ -36,7 +37,7 @@ build() {
package() {
cd foobillardplus-${pkgver}
make DESTDIR="${pkgdir}" datadir="${pkgdir}/usr/share/foobillardplus/data" \
prefix="${pkgdir}/usr/share" install
prefix="$pkgdir"/usr/share install
install -d "${pkgdir}"/usr/{bin,share/{applications,pixmaps}}
mv "${pkgdir}"/usr/share/{AUTHORS,COPYING,ChangeLog,INSTALL,README,TODO} "${pkgdir}/usr/share/foobillardplus"