updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / boss / PKGBUILD
blob5abcc245adddb00ed164ff41f5cd6cf72692ee9f
2 # g++ bgi-sample.cpp -o bgi-sample \
3 #   -I/usr/include/boss/ \
4 #   `pkg-config --cflags sdl` \
5 #   -lboss -lSDL -lSDL_mixer -lSDL_ttf
8 pkgname=boss
9 pkgver=0.45
10 pkgrel=1
11 pkgdesc="BGI(Borland Graphics Interface) over SDL implementation"
12 arch=(i686 x86_64)
13 url="http://www.codedread.com/boss.php"
14 license=('GPL')
15 depends=('sdl' 'sdl_mixer' 'sdl_ttf')
16 makedepends=('gcc' 'hd2u')
17 options=()
18 source=(http://www.codedread.com/boss-src-$pkgver.tar.gz
19         build-fix.patch)
20 md5sums=('8017b80ce663e80c647915b6dbed4421'
21          '078dde78f94a3e951001428e3fad7123')
23 build() {
24   cd "$srcdir/boss"
25   patch -p1 <$srcdir/build-fix.patch
26   dos2unix include/boss.h
27   cd src
28   gcc -c boss.cpp -o boss.o -I../include/ `pkg-config --cflags sdl` `pkg-config --cflags SDL_ttf`
29   ar q libboss.a boss.o
32 package() {
33   cd "$srcdir/boss"
34   install -Dm0644 src/libboss.a $pkgdir/usr/lib/libboss.a
35   install -Dm0644 include/boss.h $pkgdir/usr/include/boss/graphics.h