summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-08-06 00:48:12 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-08-06 00:48:12 +0000
commit4625bcd88a3af64ba120ce91d6b3711d76c1c68a (patch)
tree359bccdc2d1f58c532343b1c120111cdf0d7759d
parent6934c7aab1759e4ca76df5846a8173cb678f4074 (diff)
downloadpackages-4625bcd88a3af64ba120ce91d6b3711d76c1c68a.tar.gz
packages-4625bcd88a3af64ba120ce91d6b3711d76c1c68a.tar.bz2
packages-4625bcd88a3af64ba120ce91d6b3711d76c1c68a.tar.xz
packages-4625bcd88a3af64ba120ce91d6b3711d76c1c68a.zip
user/physfs: new package
-rw-r--r--user/physfs/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/user/physfs/APKBUILD b/user/physfs/APKBUILD
new file mode 100644
index 000000000..4c9fde504
--- /dev/null
+++ b/user/physfs/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=physfs
+pkgver=3.0.1
+pkgrel=0
+pkgdesc="Library to access various archives for game engines"
+url="https://www.icculus.org/physfs"
+arch="all"
+license="Zlib"
+depends=""
+makedepends=""
+subpackages="$pkgname-dev $pkgname-tools"
+source="https://icculus.org/physfs/downloads/physfs-$pkgver.tar.bz2"
+
+build() {
+ cd "$builddir"
+ 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 \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ ${CMAKE_CROSSOPTS}
+ make
+}
+
+check() {
+ cd "$builddir"
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+tools() {
+ pkgdesc="Tool to explore game archives from PhysicsFS"
+ mkdir -p "$subpkgdir"/usr
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
+}
+
+sha512sums="ddf3b075ccb506da5e9a1ce96001be402752b9b777c2e816a85d48aff3626ff0886ea43eb07bd300fe3a9f59b9a002f54d822c51d483a4ee94b38378534c1879 physfs-3.0.1.tar.bz2"