summaryrefslogtreecommitdiff
path: root/user/grfcodec/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2024-05-29 19:06:07 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2024-08-07 10:08:07 -0500
commit87976574f19269528f45191d9a5709f3b09abf64 (patch)
tree8252a028392ff5c226d81966a6c734bd7b1befd5 /user/grfcodec/APKBUILD
parent371353aa83f63de9239c4c754f4f24d52f676844 (diff)
downloadpackages-87976574f19269528f45191d9a5709f3b09abf64.tar.gz
packages-87976574f19269528f45191d9a5709f3b09abf64.tar.bz2
packages-87976574f19269528f45191d9a5709f3b09abf64.tar.xz
packages-87976574f19269528f45191d9a5709f3b09abf64.zip
user/grfcodec: Update to 6.1.0
PowerPC fixes upstream, and compatibility with newer GCC.
Diffstat (limited to 'user/grfcodec/APKBUILD')
-rw-r--r--user/grfcodec/APKBUILD26
1 files changed, 16 insertions, 10 deletions
diff --git a/user/grfcodec/APKBUILD b/user/grfcodec/APKBUILD
index c240a647a..e571af644 100644
--- a/user/grfcodec/APKBUILD
+++ b/user/grfcodec/APKBUILD
@@ -1,27 +1,33 @@
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=grfcodec
-pkgver=6.0.6
+pkgver=6.1.0
pkgrel=0
pkgdesc="Tool for manipulating OpenTTD GRF files"
-url="https://dev.openttdcoop.org/projects/grfcodec"
+url=" "
arch="all"
options="!check" # No test suite.
license="GPL-2.0-only"
depends=""
-makedepends="boost-dev"
+makedepends="boost-dev cmake"
subpackages="$pkgname-doc"
-source="https://cdn.openttd.org/$pkgname-releases/$pkgver/$pkgname-$pkgver-source.tar.xz
- va_copy.patch
- "
+source="https://github.com/OpenTTD/$pkgname/releases/download/$pkgver/$pkgname-$pkgver-source.tar.xz"
build() {
- make
+ 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() {
- make prefix=/usr DESTDIR="$pkgdir" install
+ DESTDIR="$pkgdir" make -C build install
}
-sha512sums="543123c794bfdb5b6556f7a897bcd2f3bdd09be8ad6a4ff07b138e0cac62621a4801c732bb20099c1bb383ad5822fc4ade276d49acf2744c811edd10d7699480 grfcodec-6.0.6-source.tar.xz
-4e7034132f889ac62b82d08dae8c928c8a7efd5a0c3dc0d3f35d6c394fb78082a37a22678c5a428489bd26608d868054131a14fb10201d5ce478d46eb9c96890 va_copy.patch"
+sha512sums="9129e0f38b151e11c90585e0fe966e042ad08ec90f800ee80f749865aed6c72c733639b8d02ecd613409f2a0ae6d1f72fa1d3524f7c450a0f06ff42ee170f16f grfcodec-6.1.0-source.tar.xz"