From 9f14fff2c1b485dbd205eec238b8f88b05f15e34 Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Sat, 27 Mar 2021 23:49:09 +0100 Subject: [PATCH] apk-tools recipe --- recipes/apk-tools/FIXME | 1 + recipes/apk-tools/Makefile | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 recipes/apk-tools/FIXME create mode 100644 recipes/apk-tools/Makefile diff --git a/recipes/apk-tools/FIXME b/recipes/apk-tools/FIXME new file mode 100644 index 0000000..9b29b06 --- /dev/null +++ b/recipes/apk-tools/FIXME @@ -0,0 +1 @@ +FIXME: directories created during "install:" are removed during packaging. diff --git a/recipes/apk-tools/Makefile b/recipes/apk-tools/Makefile new file mode 100644 index 0000000..2ef87cf --- /dev/null +++ b/recipes/apk-tools/Makefile @@ -0,0 +1,22 @@ +name = apk-tools +version = 2.10.5 +release = 0 +URL = https://dev.alpinelinux.org/archive/apk-tools/apk-tools-$(version).tar.xz + +build-dependencies = lua5.3-dev + +MAKE_OPTIONS_USER = LUAAPK=static + +# FIXME: these directories are removed during packaging. + +install: + mkdir -p '$(pkg_fake_root_dir)/sbin' + cp $(bdir)/src/apk.static '$(pkg_fake_root_dir)/sbin/apk' + mkdir -p '$(pkg_fake_root_dir)/var/lib/apk' + mkdir -p '$(pkg_fake_root_dir)/var/cache/misc' + mkdir -p '$(pkg_fake_root_dir)/etc/apk/keys' + mkdir -p '$(pkg_fake_root_dir)/etc/apk/protected_paths.d' + + +SYSCONF ?= ../../ +include $(SYSCONF)/package.mk