summaryrefslogtreecommitdiff
path: root/sys-apps/apk-tools/apk-tools-2.6.6.ebuild
diff options
context:
space:
mode:
authorAndrew Wilcox <AWilcox@Wilcox-Tech.com>2016-03-26 21:51:23 -0500
committerAndrew Wilcox <AWilcox@Wilcox-Tech.com>2016-03-26 21:51:23 -0500
commita6b8c1a607b5f3125e9fcc6ea8a7ec66d1e33899 (patch)
tree10c902df06a59ee99eefb49ed147c5996ee76bb1 /sys-apps/apk-tools/apk-tools-2.6.6.ebuild
parent6a61cca966cba28012319ade725299abfc02a447 (diff)
downloadpackages-a6b8c1a607b5f3125e9fcc6ea8a7ec66d1e33899.tar.gz
packages-a6b8c1a607b5f3125e9fcc6ea8a7ec66d1e33899.tar.bz2
packages-a6b8c1a607b5f3125e9fcc6ea8a7ec66d1e33899.tar.xz
packages-a6b8c1a607b5f3125e9fcc6ea8a7ec66d1e33899.zip
sys-apps/apk-tools: ver bump 2.6.6 + EAPI=6
Diffstat (limited to 'sys-apps/apk-tools/apk-tools-2.6.6.ebuild')
-rw-r--r--sys-apps/apk-tools/apk-tools-2.6.6.ebuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/sys-apps/apk-tools/apk-tools-2.6.6.ebuild b/sys-apps/apk-tools/apk-tools-2.6.6.ebuild
new file mode 100644
index 000000000..ea53f8223
--- /dev/null
+++ b/sys-apps/apk-tools/apk-tools-2.6.6.ebuild
@@ -0,0 +1,46 @@
+# Copyright 2015-2016 Adélie Linux Team
+# Distributed under the terms of the NCSA License
+
+EAPI=6
+
+DESCRIPTION="The Alpine Linux Package Keeper (APK)"
+HOMEPAGE="http://alpinelinux.org/"
+SRC_URI="http://git.alpinelinux.org/cgit/apk-tools/snapshot/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="arm mips ppc x86 x86_64 ~alpha ~arm64 ~hppa ~ppc64 ~sparc64"
+IUSE="static" # lua
+
+DEPEND="dev-libs/libfetch[ssl]"
+RDEPEND="${DEPEND}
+ >=dev-libs/openssl-1.0.1p
+ static? ( >=dev-libs/openssl-1.0.1p[static-libs] )
+ sys-libs/zlib
+ static? ( sys-libs/zlib[static-libs] )
+"
+# lua? ( dev-lang/lua:5.2 )
+
+PATCHES=(
+ "${FILESDIR}"/${P}-use-sha256-signature.patch
+ )
+
+src_configure() {
+ #if ! use lua; then
+ echo 'LUAAPK=' >> "${S}"/config.mk
+ echo 'export LUAAPK' >> "${S}"/config.mk
+ #fi
+}
+
+src_compile () {
+ export CFLAGS=-Wno-error=unused-result
+ emake
+ use static && emake static
+}
+
+pkg_preinst () {
+ mkdir -p "${D}"/usr/sbin
+ mv "${D}"/sbin/apk "${D}"/usr/sbin/apk
+ use static && "${D}"/sbin/apk.static "${D}"/usr/sbin/apk.static
+ rmdir "${D}"/sbin
+}