Mail archive
alpine-aports

[alpine-aports] [PATCH] testing/physfs: new aport

From: Mikhail Ivko <ivko.mv_at_gmail.com>
Date: Wed, 20 Sep 2017 21:45:41 +0700

---
 testing/physfs/APKBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)
 create mode 100644 testing/physfs/APKBUILD
diff --git a/testing/physfs/APKBUILD b/testing/physfs/APKBUILD
new file mode 100644
index 0000000000..e1a6bb65c5
--- /dev/null
+++ b/testing/physfs/APKBUILD
_at_@ -0,0 +1,44 @@
+# Contributor: Mikhail Ivko <ivko.mv_at_gmail.com>
+# Maintainer:
+pkgname=physfs
+pkgver=2.0.3
+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="47eff0c81b8dc3bb526766b0a8ad2437d2951867880116d6e6e8f2ec1490e263541fb741867fed6517cc3fa8a9c5651b36e3e02a499f19cfdc5c7261c9707e80  physfs-2.0.3.tar.bz2"
-- 
2.14.1
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Wed Sep 20 2017 - 21:45:41 UTC