summaryrefslogblamecommitdiff
path: root/user/trigger-rally/APKBUILD
blob: 9e71972d15706cb1ab440f1c992557e1d7e99255 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12


                                                  
              







                                                                              
                                    
                          

                                                                                    
                         
                             


         
                                                                                                       


           
                                                                            









                                                                                            

 
                                                                                                                                                                          
                                                                                                                                                  
                                                                                                                                                   
                                                                                                                                                        
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=trigger-rally
pkgver=0.6.6.1
pkgrel=0
pkgdesc="Fast-paced rally racing game"
url="http://trigger-rally.sourceforge.net/"
arch="all"
options="!check"  # No test suite.
license="GPL-2.0-only"
depends=""
makedepends="freealut-dev glew-dev glu-dev openal-soft-dev physfs-dev sdl2-dev
	sdl2_image-dev tinyxml2-dev"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/trigger-rally/trigger-rally-$pkgver.tar.gz
	dont-strip.patch
	sdl2-compat.patch
	trigger-rally.desktop
	"

build() {
	make OPTIMS="$CXXFLAGS -Wno-deprecated-declarations" DESTDIR="$pkgdir" prefix=/usr -C src build
}

package() {
	make OPTIMS="$CXXFLAGS" DESTDIR="$pkgdir" prefix=/usr -C src install

	install -D -m644 "$srcdir"/trigger-rally.desktop \
		"$pkgdir"/usr/share/applications/trigger-rally.desktop

	for _icon in 16 22 24 32 36 48 64 72 96 128 192 256; do
		install -D -m644 "$builddir"/data/icon/trigger-$_icon.png \
			"$pkgdir"/usr/share/icons/hicolor/${_icon}x${_icon}/apps/trigger.png
	done
	install -D -m644 "$builddir"/data/icon/trigger-rally-icons.svg \
		"$pkgdir"/usr/share/icons/hicolor/scalable/apps/trigger.svg
}

sha512sums="feed805858ef63907bb10088761f1219b22fe55ead268511ef73b18aa0f18d79e87d4e2cbfb76361b1dec3949b59464af33efe31e81f06ae7e163430f3336669  trigger-rally-0.6.6.1.tar.gz
a81781058177e012daaad58d72e4bdbdbc2730b1df76941ba03f06367545b213ba82a33bab46deba31570973deb1802a3d459704c3a963c38eec69ef82f228d5  dont-strip.patch
e16fa74f1554cf8202f1ae5994c8f65eb311bf85ec9e89989911975db54d22c8e7dff559952e730972011b7dfabfd6aedb8c9f1d6292839734bfee54796b743a  sdl2-compat.patch
ddaf7d89353280f7952d6cffd06182ea28640473e18eff06809c48477349248f57922eaff9bf816261c32f8fdc167d933f345422f9885638041dd9f5e5ac0524  trigger-rally.desktop"