X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 0E4DBDC2E21 for ; Wed, 18 May 2016 17:05:29 +0000 (UTC) Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id AD9F0DC2E1E for ; Wed, 18 May 2016 17:05:28 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id w143so14372258wmw.3 for ; Wed, 18 May 2016 10:05:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=eEAo2D/7sWVCPG5do24J3B4xlDa8onnQNyP5uGODsVs=; b=ue2FxwGDT4BenomCqR5K4VnWrjE/TEBkrWup7Q9ZI3Sxzxz/E+hSWCbvFDX5n+2XWF 0xcaHH0rLRkgEw2vw6LPEWo4SbgYbQlMWf4XL7niiVlhcwlJQyz/5iZvNY7yYKZgPtBs mPFVrzSYoNF+PSTqNsCW2v7WJLRYFyYpCNmo/QMcPwAn2v7l3Je5OaEoBCg2Xvg7ggQc c4zakzS7IgXo75cxbWaR8zrv5g9l8nL4fJRv5iS4pJh0+iZb0RhQkbsvXGAeWhVQTtsE HsNffwgMLNslCi+UNQ3Lya9wKTrLgpvZvHzoKRl/MPy3+eCkUhrHYmvAUSFt8LRcUUVG bFmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=eEAo2D/7sWVCPG5do24J3B4xlDa8onnQNyP5uGODsVs=; b=DnOeDIk8hfGQBQu9+OM1r8KRB9HlU0BwA9NJuuoYutUxnNWV4JU6Qf22eOqHq0kWcw hmKshVkOA/utrw9mrwgpuyIyJEtvZ+lyOCSABu8eprWTmOoNUftM4mYQHedPk7D9sv35 BPZ+7k+8NE05vZCeEDV0USKNaLsSW7XI0X5QO9OVnYjW6XvE3fWguPR9OHdj38YHUIry JwONULvf+Ru4TqoPlGnrl+DWVB6LqtwOXU0HYZEGUQahFpA5v0T3huhANB1dpwij96fH SGp4urKiBNH7rEG9gr3xyXgyHUKrCEbrgG/Hn+GGWx6dXcyaJY51pKqpcJ4qCgeZDIcM nuNQ== X-Gm-Message-State: AOPr4FXn/xEjDnpcMB1kni2B0V8AZMInhaM9fkt3/jb8d/kHBw+wu674Rq2N+OBDMY8RJw== X-Received: by 10.194.116.225 with SMTP id jz1mr8554532wjb.148.1463591127406; Wed, 18 May 2016 10:05:27 -0700 (PDT) Received: from localhost.localdomain (tsn109-201-154-177.dyn.nltelcom.net. [109.201.154.177]) by smtp.gmail.com with ESMTPSA id kz1sm9636743wjc.46.2016.05.18.10.05.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 May 2016 10:05:26 -0700 (PDT) From: Michael Koloberdin To: alpine-aports@lists.alpinelinux.org Cc: Michael Koloberdin Subject: [alpine-aports] [PATCH] testing/optipng: new aport Date: Wed, 18 May 2016 17:04:15 +0000 Message-Id: <1463591055-28821-1-git-send-email-koloberdin@gmail.com> X-Mailer: git-send-email 2.6.6 X-Virus-Scanned: ClamAV using ClamSMTP X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: --- testing/optipng/APKBUILD | 46 ++++++++++++++++++++++++++++++++++++++ testing/optipng/builtin-zlib.patch | 14 ++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 testing/optipng/APKBUILD create mode 100644 testing/optipng/builtin-zlib.patch diff --git a/testing/optipng/APKBUILD b/testing/optipng/APKBUILD new file mode 100644 index 0000000..0bca781 --- /dev/null +++ b/testing/optipng/APKBUILD @@ -0,0 +1,46 @@ +# Maintainer: Michael Koloberdin +pkgname=optipng +pkgver=0.7.6 +pkgrel=0 +pkgdesc="Compresses PNG files to a smaller size, without losing any information." +url="http://optipng.sourceforge.net/" +arch="all" +license="ZLIB" +depends="" +makedepends="" +install="" +subpackages="$pkgname-doc" +source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz + builtin-zlib.patch" + +_builddir="$srcdir/$pkgname-$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" + ./configure --prefix=/usr || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make prefix="$pkgdir/usr" mandir="$pkgdir/usr/share/man" install || return 1 + + # install license + install -Dm0644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" || return 1 +} + +md5sums="568e0738358450eca69ecf578d48f26c optipng-0.7.6.tar.gz +510408cb0f6cdcdf9c94ab9872f33a9a builtin-zlib.patch" +sha256sums="4870631fcbd3825605f00a168b8debf44ea1cda8ef98a73e5411eee97199be80 optipng-0.7.6.tar.gz +3824daeba9185b5aa3e8a21dc243817bebb0cfb53ee102d3f2cc81ce5263fa73 builtin-zlib.patch" +sha512sums="d31d7494c23413d87b601a706cc2faf82923156a818da66e0bfad11741aed065db8f1b0c088d2abd66899ac192408c05f594295ded2684c4549c5f03b140a184 optipng-0.7.6.tar.gz +062b12062f6d80127f89da88d216ad69c152f85ff03537f3c389c3e7ecc798bf21d62e1bb1065a0234b68b1acda6ef670ef5971c45d7ed4bbd5bdd3786fdd0b0 builtin-zlib.patch" diff --git a/testing/optipng/builtin-zlib.patch b/testing/optipng/builtin-zlib.patch new file mode 100644 index 0000000..a09cdad --- /dev/null +++ b/testing/optipng/builtin-zlib.patch @@ -0,0 +1,14 @@ +diff -urp optipng-0.7.6-orig/configure optipng-0.7.6/configure +--- optipng-0.7.6-orig/configure 2014-12-01 07:25:00.000000000 +0200 ++++ optipng-0.7.6/configure 2016-05-17 20:56:08.950224977 +0300 +@@ -234,6 +234,10 @@ then + fi + if test "$CPPFLAGS" + then ++ if test "$with_system_zlib" -eq 0 ++ then ++ CPPFLAGS="-I../zlib ${CPPFLAGS}" ++ fi + sed_preconfig_libpng=" + $sed_preconfig_libpng + s|^CPPFLAGS *=.*|CPPFLAGS = $CPPFLAGS| -- 2.6.6 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---