summaryrefslogblamecommitdiff
path: root/user/grfcodec/APKBUILD
blob: e571af64442da72c81f722290e70a115b8bd4c75 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                                                  
            

                                                 
       



                                  
                             
                          
                                                                                                     

         









                                                                                          


           
                                               

 
                                                                                                                                                                           
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=grfcodec
pkgver=6.1.0
pkgrel=0
pkgdesc="Tool for manipulating OpenTTD GRF files"
url=" "
arch="all"
options="!check"  # No test suite.
license="GPL-2.0-only"
depends=""
makedepends="boost-dev cmake"
subpackages="$pkgname-doc"
source="https://github.com/OpenTTD/$pkgname/releases/download/$pkgver/$pkgname-$pkgver-source.tar.xz"

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		${CMAKE_CROSSOPTS} -Bbuild
	make -C build
}

package() {
	DESTDIR="$pkgdir" make -C build install
}

sha512sums="9129e0f38b151e11c90585e0fe966e042ad08ec90f800ee80f749865aed6c72c733639b8d02ecd613409f2a0ae6d1f72fa1d3524f7c450a0f06ff42ee170f16f  grfcodec-6.1.0-source.tar.xz"