aports/testing/libresprite/APKBUILD
Hugo Osvaldo Barrera 7dffbf5fe2 testing/libresprite: new aport
Upstream ships a tarball with several vendored dependencies. Those don't
seem to have a stable release, and the tarball pins exact commits, so
it's probably pointless to try and unvendor them. We don't have any
other packages that rely on them.
2025-04-13 22:13:36 +00:00

50 lines
1.5 KiB
Text

maintainer="Hugo Osvaldo Barrera <hugo@whynothugo.nl>"
pkgname=libresprite
pkgver=1.2
pkgrel=0
pkgdesc="Animated sprite and pixel art tool"
url="https://libresprite.github.io/"
arch="all"
license="GPL-2.0-only AND MIT AND BSD-3-Clause AND Libpng AND Unlicense"
makedepends="
cmake
curl-dev
freetype-dev
giflib-dev
libarchive-dev
libjpeg-turbo-dev
libpng-dev
libxi-dev
ninja
pixman-dev
sdl2-dev
sdl2_image-dev
tinyxml2-dev
"
source="libresprite-$pkgver.tar.gz::https://github.com/LibreSprite/LibreSprite/releases/download/v$pkgver/SOURCE.CODE.+.submodules.tar.gz"
subpackages="$pkgname-doc"
builddir="$srcdir"
options="!check" # no tests
build() {
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
_licencedir="$pkgdir/usr/share/licenses/$pkgname/"
install -Dm644 LICENSE.txt -t "$_licencedir"
install -Dm644 docs/licenses/*-LICENSE.txt -t "$_licencedir"
install -Dm644 third_party/EasyTab/LICENSE -t "$_licencedir/easytab-LICENSE.txt"
install -Dm644 third_party/duktape/LICENSE.txt -t "$_licencedir/duktape-LICENSE.txt"
install -Dm644 third_party/modp_b64/LICENSE -t "$_licencedir/modp_b64-LICENSE.txt"
install -Dm644 third_party/observable/LICENSE.txt -t "$_licencedir/observable-LICENSE.txt"
install -Dm644 third_party/simpleini/LICENCE.txt -t "$_licencedir/simpleini-LICENSE.txt"
}
sha512sums="
6f79423a98b931e7538acd4d0362ce09890bc6f8877b2a4d77a217ac8bd1fc9f24220eba40203c83bfab504e9bcd1510c4fbea065d63587078596ecaad513f6e libresprite-1.2.tar.gz
"