archrelease: copy trunk to community-any
[arch-community.git] / frogatto / trunk / PKGBUILD
blob4801a601fd302aefca829e495c30b8da538f4520
1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
2 # Contributor: Federico CInelli <cinelli@aur.archlinux.org>
3 # Contributor: Tom Wambold <tom5760@gmail.com>
5 pkgname=frogatto
6 arch=('x86_64')
7 pkgver=1.3.1
8 pkgrel=40
9 pkgdesc="An old-school 2d platformer game, starring a certain quixotic frog"
10 url="http://www.frogatto.com"
11 license=('GPL')
12 depends=('glew' 'sdl' 'sdl_image' 'sdl_ttf' 'sdl_mixer' 'libpng' 'boost-libs' 'frogatto-data' 'ttf-ubuntu-font-family')
13 makedepends=('mesa' 'boost')
14 source=("$pkgname-$pkgver.tgz::https://github.com/frogatto/frogatto/archive/$pkgver.tar.gz"
15         launcher
16         frogatto.desktop
17         fbsd-fixes.patch
18         frogatto-boost-1.70.patch
19         rm_glBlendEquationOES.patch)
20 sha512sums=('bb1c5e765a456abedd7b80cce99b7be62734a6163c2e2beb9776c6a61eba779a916ea99a3c113be0626a4d238f10dcdf360d26f993f1d9ac4e381d711b27be23'
21             'f10944f8b4c2e2704ceda533d6c6768c653f4c42b8628ccccffc035122f0f5b02e3dfa600dc251440f2f4245c6d1def309556d39ea11b7aa9b6ff58751d89c00'
22             '7381f54bc8d406c7669bc1d36cd04c30f80d7eec03808ad69156317b811528830ae40a22e48a8a18e2a00e15cd0ee3f8b9a0248c08b2bce30bc8d8f57b5e6038'
23             '10ddc0cdebe1abb4f28b3afd9c1c3b1e887f47262424aa73c2a61d09375aa69287c28e0206041de5bfc2534c498c73710b98432ed538f3b900ec220541f47062'
24             '4c7f3a4bdb0fead85cb4d650761f4b8458a9f3fbe77f6e77d902a261efdae5f35808784f9ea85556b2f01d203dade9ca9224bc46c49fe38d27681e67e88a907a'
25             'ea713507b60be9f035bb84bed2c79392eac7119696956d24a659f2a0b89cffa738e460b35a744ded3a0b35c52303a1d67ac911d9ddf7a4ee2484708342e66e2e')
27 prepare() {
28   cd $pkgname-$pkgver
29   patch -p1 -i ../fbsd-fixes.patch
30   patch -p0 -i ../frogatto-boost-1.70.patch # Fix build with boost 1.70 (freebsd)
31   patch -p1 -i ../rm_glBlendEquationOES.patch # Fix crash when exiting first house
34 build() {
35   cd "$pkgname-$pkgver"
37   sed -i 's/-Werror //' Makefile
38   sed -i 's/ccache //g' Makefile
39   sed -i 's/-lprofiler//g' Makefile
40   sed -i 's/\.io_service/\.get_io_service/g' src/server.cpp
41   sed -i 's/\%lu\\n/\%zu\\n/g' src/server.cpp
42   make CFLAGS='-DUSE_GLES2' game server
45 package() {
46   cd "$pkgname-$pkgver"
48   install -Dm 755 "game" "$pkgdir/opt/frogatto/game"
49   install -Dm 755 "server" "$pkgdir/opt/frogatto/server"
50   install -Dm 644 "src/LICENSE" "$pkgdir/usr/share/licenses/frogatto/LICENSE"
51   install -Dm 755 "$srcdir/launcher" "$pkgdir/usr/bin/frogatto"
52   install -Dm 644 "$srcdir/frogatto.desktop" "$pkgdir/usr/share/applications/frogatto.desktop"
54   # Make level editor work (FS#37139)
55   ln -s /usr/share/fonts/TTF/UbuntuMono-R.ttf "$pkgdir"/opt/frogatto/
58 # vim:set ts=2 sw=2 et: