mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-05 09:27:19 +02:00
These variables are initialized from the environment so -DCMAKE_C_FLAGS="$CFLAGS" and similar shouldn't have any effect.
30 lines
947 B
Text
30 lines
947 B
Text
# Contributor: KikooDX <kikoodx@paranoici.org>
|
|
# Maintainer: KikooDX <kikoodx@paranoici.org>
|
|
pkgname=mkg3a
|
|
pkgver=0.5.0
|
|
pkgrel=1
|
|
pkgdesc="utility for creating Casio Prizm add-on (.g3a) files"
|
|
url="https://gitlab.com/taricorp/mkg3a"
|
|
arch="all"
|
|
license="Zlib"
|
|
makedepends="libpng-dev cmake"
|
|
subpackages="$pkgname-doc"
|
|
options="!check" # there is no test suite
|
|
source="$pkgname-$pkgver.tar.gz::https://gitlab.com/taricorp/mkg3a/-/archive/$pkgver/mkg3a-$pkgver.tar.gz"
|
|
|
|
build() {
|
|
if [ "$CBUILD" != "$CHOST" ]; then
|
|
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
|
|
fi
|
|
cmake -B build \
|
|
-DCMAKE_BUILD_TYPE=None \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
$CMAKE_CROSSOPTS
|
|
cmake --build build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --build build --target install
|
|
}
|
|
|
|
sha512sums="a65f58e3691892473d3a56c6f56155dafe37bfc5e31a112978ed1c0c82f60d67715949a807cb5a8beb8d3441501c20c6ff2432e0c12270900f2fe343baf31fe8 mkg3a-0.5.0.tar.gz"
|