summaryrefslogtreecommitdiff
path: root/packages/sys-fs
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2019-08-20 21:44:19 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2019-08-20 21:44:19 +0300
commit8ca36b9de64512b9fe0911628aa114204eae1844 (patch)
tree56d47484465ee393291e0f4ed0d3d86fb480e604 /packages/sys-fs
parenta369cc67c9c2dbec63255f878aee6bc62f8b854d (diff)
duperemove: changes suggested in https://gitlab.exherbo.org/sss/sss-repo/commit/6cdfbd78b88fd9259e38b2aa910353bab7add5ae#note_14189
Diffstat (limited to 'packages/sys-fs')
-rw-r--r--packages/sys-fs/duperemove/duperemove.exlib17
1 files changed, 5 insertions, 12 deletions
diff --git a/packages/sys-fs/duperemove/duperemove.exlib b/packages/sys-fs/duperemove/duperemove.exlib
index e8188ae..8a01d23 100644
--- a/packages/sys-fs/duperemove/duperemove.exlib
+++ b/packages/sys-fs/duperemove/duperemove.exlib
@@ -3,7 +3,7 @@
require github [ user=markfasheh tag=v${PV} ]
-export_exlib_phases src_prepare src_install
+export_exlib_phases src_prepare
SLOT="0"
LICENCES="GPL-2"
@@ -18,15 +18,8 @@ duperemove_src_prepare() {
edo sed -e "s/pkg-config/$(exhost --target)-pkg-config/g" -i "${WORK}"/Makefile
}
-#duperemove_src_compile() {
-# cd "${WORKBASE}/${PNV}"
-# make -j1
-#}
+DEFAULT_SRC_INSTALL_PARAMS=(
+ PREFIX="/usr/$(exhost --target)"
+ SBINDIR="/usr/$(exhost --target)/bin"
+)
-duperemove_src_install() {
- default
- edo mkdir -p "${IMAGE}"/usr/$(exhost --target)/bin
- edo mv "${IMAGE}"/usr/local/share/* "${IMAGE}"/usr/share/
- edo mv "${IMAGE}"/usr/local/sbin/* "${IMAGE}"/usr/$(exhost --target)/bin/
- edo rm -rf "${IMAGE}"/usr/local
-}