From 1c6163a8ec00b55fd7cbcd716c7c3fb6924481b7 Mon Sep 17 00:00:00 2001 From: Mitch Tishmack Date: Sun, 18 Jun 2017 12:37:29 -0500 Subject: community/upx: moved from testing --- .../upx/0001-rm-broken-whitespace-check.patch | 16 +++++++++ community/upx/APKBUILD | 38 ++++++++++++++++++++++ testing/upx/0001-rm-broken-whitespace-check.patch | 16 --------- testing/upx/APKBUILD | 38 ---------------------- 4 files changed, 54 insertions(+), 54 deletions(-) create mode 100644 community/upx/0001-rm-broken-whitespace-check.patch create mode 100644 community/upx/APKBUILD delete mode 100644 testing/upx/0001-rm-broken-whitespace-check.patch delete mode 100644 testing/upx/APKBUILD diff --git a/community/upx/0001-rm-broken-whitespace-check.patch b/community/upx/0001-rm-broken-whitespace-check.patch new file mode 100644 index 0000000000..b245a4fb29 --- /dev/null +++ b/community/upx/0001-rm-broken-whitespace-check.patch @@ -0,0 +1,16 @@ +--- a/src/Makefile ++++ b/src/Makefile +@@ -104,13 +104,6 @@ + endif + + CHECK_WHITESPACE = +-ifeq ($(shell uname),Linux) +-CHECK_WHITESPACE = $(top_srcdir)/src/stub/scripts/check_whitespace.sh $(top_srcdir) +-ifneq ($(wildcard $(top_srcdir)/.git/.),) +-CHECK_WHITESPACE = $(top_srcdir)/src/stub/scripts/check_whitespace_git.sh $(top_srcdir) +-endif +-check-whitespace : ; $(CHECK_WHITESPACE) +-endif + .PHONY: check-whitespace + + mostlyclean clean distclean maintainer-clean: diff --git a/community/upx/APKBUILD b/community/upx/APKBUILD new file mode 100644 index 0000000000..72f4424401 --- /dev/null +++ b/community/upx/APKBUILD @@ -0,0 +1,38 @@ +# Maintainer: Mitch Tishmack +# TODO: unbundle lzma-sdk +pkgname=upx +pkgver=3.94 +pkgrel=0 +pkgdesc="The Ultimate Packer for eXecutables" +url="https://upx.github.io" +arch="all" +license="GPL2 public-domain" +# perl-dev is used to generate man pages +makedepends="bash perl-dev ucl-dev zlib-dev" +subpackages="$pkgname-doc" +source="https://github.com/upx/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver-src.tar.xz + 0001-rm-broken-whitespace-check.patch" +builddir="$srcdir/$pkgname-$pkgver-src" + +prepare() { + default_prepare || return 1 + + cd "$builddir" + sed -i 's/ -O2/ /' src/Makefile +} + +build() { + cd "$builddir" + + make UPX_LZMADIR="$srcdir" all +} + +package() { + cd "$builddir" + + install -D -m 0755 src/upx.out "$pkgdir"/usr/bin/upx + install -D -m 0644 doc/upx.1 "$pkgdir"/usr/share/man/man1/upx.1 +} + +sha512sums="b9e8e6e13b2a267a30a9c4e572243c4ebeff9600044193de38c84e8943e3cd30c9cdd7b270cc0bdf14c1078ac15250906238f8272cd97a7eb40f2588965c6151 upx-3.94-src.tar.xz +a41dd8b8e9e884c78c410a49b4486963f6dd90759ba49eb05123e81b8e4fbe3d23af2ba5c2acf64218b7edeec7df0793b4030d1375c167a183a4d70d21addf50 0001-rm-broken-whitespace-check.patch" diff --git a/testing/upx/0001-rm-broken-whitespace-check.patch b/testing/upx/0001-rm-broken-whitespace-check.patch deleted file mode 100644 index b245a4fb29..0000000000 --- a/testing/upx/0001-rm-broken-whitespace-check.patch +++ /dev/null @@ -1,16 +0,0 @@ ---- a/src/Makefile -+++ b/src/Makefile -@@ -104,13 +104,6 @@ - endif - - CHECK_WHITESPACE = --ifeq ($(shell uname),Linux) --CHECK_WHITESPACE = $(top_srcdir)/src/stub/scripts/check_whitespace.sh $(top_srcdir) --ifneq ($(wildcard $(top_srcdir)/.git/.),) --CHECK_WHITESPACE = $(top_srcdir)/src/stub/scripts/check_whitespace_git.sh $(top_srcdir) --endif --check-whitespace : ; $(CHECK_WHITESPACE) --endif - .PHONY: check-whitespace - - mostlyclean clean distclean maintainer-clean: diff --git a/testing/upx/APKBUILD b/testing/upx/APKBUILD deleted file mode 100644 index 72f4424401..0000000000 --- a/testing/upx/APKBUILD +++ /dev/null @@ -1,38 +0,0 @@ -# Maintainer: Mitch Tishmack -# TODO: unbundle lzma-sdk -pkgname=upx -pkgver=3.94 -pkgrel=0 -pkgdesc="The Ultimate Packer for eXecutables" -url="https://upx.github.io" -arch="all" -license="GPL2 public-domain" -# perl-dev is used to generate man pages -makedepends="bash perl-dev ucl-dev zlib-dev" -subpackages="$pkgname-doc" -source="https://github.com/upx/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver-src.tar.xz - 0001-rm-broken-whitespace-check.patch" -builddir="$srcdir/$pkgname-$pkgver-src" - -prepare() { - default_prepare || return 1 - - cd "$builddir" - sed -i 's/ -O2/ /' src/Makefile -} - -build() { - cd "$builddir" - - make UPX_LZMADIR="$srcdir" all -} - -package() { - cd "$builddir" - - install -D -m 0755 src/upx.out "$pkgdir"/usr/bin/upx - install -D -m 0644 doc/upx.1 "$pkgdir"/usr/share/man/man1/upx.1 -} - -sha512sums="b9e8e6e13b2a267a30a9c4e572243c4ebeff9600044193de38c84e8943e3cd30c9cdd7b270cc0bdf14c1078ac15250906238f8272cd97a7eb40f2588965c6151 upx-3.94-src.tar.xz -a41dd8b8e9e884c78c410a49b4486963f6dd90759ba49eb05123e81b8e4fbe3d23af2ba5c2acf64218b7edeec7df0793b4030d1375c167a183a4d70d21addf50 0001-rm-broken-whitespace-check.patch" -- cgit v1.2.3