summaryrefslogtreecommitdiff
path: root/packages/sys-fs/duperemove/duperemove.exlib
blob: e8188ae7c5afedd32e13091280a567398d56dced (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Distributed under the terms of the GNU General Public License v2                                                                      
# Copyright 2019 Gluzskiy Alexandr <sss@sss.chaoslab.ru>

require github [ user=markfasheh tag=v${PV} ]

export_exlib_phases src_prepare src_install

SLOT="0"
LICENCES="GPL-2"

DEPENDENCIES="
    build+run:
        dev-db/sqlite:3
        dev-libs/glib:2
"

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 
#}

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
}