summaryrefslogtreecommitdiff
path: root/packages/net-misc/plowshare/plowshare-2.1.7.exheres-0
blob: 71b5505f4e4f43136b5c393b2a7666d4978eb2a9 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright 2014 Elias Pipping <pipping@exherbo.org>
# Distributed under the terms of the GNU General Public License v2

require github [ user=mcrapet tag="v${PV}" ]
require bash-completion

SUMMARY="Command-line download/upload tool for popular One-Click hosters"

LICENCES="GPL-3"
SLOT="0"
PLATFORMS="~amd64"
MYOPTIONS=""

DEPENDENCIES="
    run:
        net-misc/curl[>=7.24]
        virtual/sed[providers:gnu]
    recommendation:
        media-gfx/ImageMagick [[ description = [ Display captcha ] ]]
    suggestion:
        dev-libs/spidermonkey:* [[ description = [ Interpret JavaScrpt in plowdown ] ]]
        app-text/recode [[ description = [ Getting proper filenames ] ]]
"

DEFAULT_SRC_INSTALL_PARAMS=(
    BINDIR=/usr/$(exhost --target)/bin
    DOCDIR=/usr/share/doc/${PNVR}
)

src_prepare() {
    if ! option bash-completion; then
        edo sed -E \
            "/^install/ s|patch_bash_completion||" \
            -i Makefile
    fi
}

src_compile() {
    :
}

src_install() {
    PLOWSHARE_FORCE_VERSION=${PV} \
        default
}