aboutsummaryrefslogtreecommitdiffstats
path: root/testing/physfs
diff options
context:
space:
mode:
authorMikhail Ivko <ivko.mv@gmail.com>2017-09-20 21:45:41 +0700
committerCarlo Landmeter <clandmeter@alpinelinux.org>2018-12-10 10:45:29 +0000
commit0723227f894ae54e01e7a4d58a8ba3659531cc54 (patch)
treeb3d1fe2df8f21ad83972b3a253f578089c4fcfb1 /testing/physfs
parent3422d255730ab24907a0850815c17a9e5eff193d (diff)
downloadaports-0723227f894ae54e01e7a4d58a8ba3659531cc54.tar.bz2
aports-0723227f894ae54e01e7a4d58a8ba3659531cc54.tar.xz
testing/physfs: new aport
Diffstat (limited to 'testing/physfs')
-rw-r--r--testing/physfs/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/physfs/APKBUILD b/testing/physfs/APKBUILD
new file mode 100644
index 0000000000..10e29bb449
--- /dev/null
+++ b/testing/physfs/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: Mikhail Ivko <ivko.mv@gmail.com>
+# Maintainer:
+pkgname=physfs
+pkgver=3.0.1
+pkgrel=0
+pkgdesc="Library providing access to various archives, for use in video games"
+url="https://icculus.org/physfs/"
+arch="all"
+license="zlib"
+depends=""
+depends_dev="ncurses-dev"
+makedepends="cmake $depends_dev"
+install=""
+subpackages="$pkgname-dev"
+source="https://icculus.org/physfs/downloads/physfs-$pkgver.tar.bz2"
+builddir="$srcdir/physfs-$pkgver"
+
+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=Release \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ ${CMAKE_CROSSOPTS}
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test_physfs
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="ddf3b075ccb506da5e9a1ce96001be402752b9b777c2e816a85d48aff3626ff0886ea43eb07bd300fe3a9f59b9a002f54d822c51d483a4ee94b38378534c1879 physfs-3.0.1.tar.bz2"