X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 50CD4DC00CA for ; Tue, 18 Nov 2014 19:06:00 +0000 (UTC) Received: by mail-pa0-f50.google.com with SMTP id bj1so4939693pad.9 for ; Tue, 18 Nov 2014 11:05:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=D1OXOvf8pTAi6UdTfV10lc2p8R+sdGU66Il5V3XCPKU=; b=iEC2J9vXZotVRYYh4qvN8DHMG7v71zaoDiOXxPc4OkCl58pYFByX4T0yp0ZJpDxwhb BBNS0ixTfvL04bKZAdx6byVxduvucN1qkw6KtvVL2nANnq8SvmW5EV6YEI+cUAsYJX58 WwNV+m8FiA/PTsW6QZxzixJs9daFL/hnkFSL7f16hmFABR0bDdxWx2qZNTPSiRsGnIyt JhxJkFQgTheLGDqbMtV3vzMcSAERDT4tWh0WpZlQLHRriIVcroMyJX3VocoiO55Ffn8A lsXzR+ruBJHzW3wV8BkZr8mwaLzSeP1D+lT5GG/U5r64sXNNBcS0DGbj/cNr6TGo4T4b QroA== X-Received: by 10.66.227.103 with SMTP id rz7mr38099338pac.45.1416337559026; Tue, 18 Nov 2014 11:05:59 -0800 (PST) Received: from localhost.localdomain ([50.0.227.65]) by mx.google.com with ESMTPSA id uy8sm12372863pab.44.2014.11.18.11.05.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Nov 2014 11:05:58 -0800 (PST) From: Isaac Dunham To: alpine-devel@lists.alpinelinux.org Cc: Isaac Dunham Subject: [alpine-devel] [PATCH] testing/physfs: new package Date: Tue, 18 Nov 2014 11:05:53 -0800 Message-Id: <1416337553-7113-1-git-send-email-ibid.ag@gmail.com> X-Mailer: git-send-email 2.1.3 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: --- testing/physfs/APKBUILD | 46 ++++++++++++++++++++++++++++++++++++++++ testing/physfs/silence-gcc.patch | 19 +++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 testing/physfs/APKBUILD create mode 100644 testing/physfs/silence-gcc.patch diff --git a/testing/physfs/APKBUILD b/testing/physfs/APKBUILD new file mode 100644 index 0000000..5bca842 --- /dev/null +++ b/testing/physfs/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: +# Maintainer: +pkgname=physfs +pkgver=2.0.3 +pkgrel=0 +pkgdesc="PhysicsFS is a library to provide abstract access to various archives" +url="http://icculus.org/physfs/" +arch="all" +license="custom zlib" +depends="" +depends_dev="zlib-dev" +makedepends="$depends_dev cmake doxygen" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="https://icculus.org/physfs/downloads/physfs-$pkgver.tar.bz2 + silence-gcc.patch" + +_builddir="$srcdir"/physfs-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" && mkdir bld && cd bld && \ + cmake -DCMAKE_INSTALL_PREFIX=/usr ../ && make || return 1 +} + +package() { + cd "$_builddir" && \ + install -d "$pkgdir"/usr/share/licenses/"$pkgname" && \ + install -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/"$pkgname"/ && \ + cd bld && make install DESTDIR="$pkgdir" || return 1 +} + +md5sums="c2c727a8a8deb623b521b52d0080f613 physfs-2.0.3.tar.bz2 +a2a01b5f5ddf9f6a37f8a8289edd69cc silence-gcc.patch" +sha256sums="ca862097c0fb451f2cacd286194d071289342c107b6fe69079c079883ff66b69 physfs-2.0.3.tar.bz2 +9eaeedabe7df2b80ab8c4ae4114d9ecbb9ab2125c14e5ca56b24d21387e06178 silence-gcc.patch" +sha512sums="47eff0c81b8dc3bb526766b0a8ad2437d2951867880116d6e6e8f2ec1490e263541fb741867fed6517cc3fa8a9c5651b36e3e02a499f19cfdc5c7261c9707e80 physfs-2.0.3.tar.bz2 +4e18558d23982d71aac5f6509bd771f65dd52d5e75d969d0ac0561e34a58cd183973157b5fd7f713ba4c32e3b30c5f5abc97de571cf301aad98538cc016154b4 silence-gcc.patch" diff --git a/testing/physfs/silence-gcc.patch b/testing/physfs/silence-gcc.patch new file mode 100644 index 0000000..d4318f6 --- /dev/null +++ b/testing/physfs/silence-gcc.patch @@ -0,0 +1,19 @@ +commit e64432ac6dde3bf6943d8fc929241d57a961a673 +Author: Isaac Dunham +Date: Tue Nov 18 10:26:22 2014 -0800 + + shut up gcc: data_start is stored to, not used + +diff --git a/archivers/zip.c b/archivers/zip.c +index 0e65453..611198d 100644 +--- a/archivers/zip.c ++++ b/archivers/zip.c +@@ -1113,7 +1113,7 @@ static void *ZIP_openArchive(const char *name, int forWriting) + { + void *in = NULL; + ZIPinfo *info = NULL; +- PHYSFS_uint32 data_start; ++ PHYSFS_uint32 data_start = data_start; + PHYSFS_uint32 cent_dir_ofs; + + BAIL_IF_MACRO(forWriting, ERR_ARC_IS_READ_ONLY, NULL); -- 2.1.3 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---