blob: 637d1f55f45c0ca68772d5af1922b7c8a6391d53 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# Distributed under the terms of the GNU General Public License v2
# Copyright 1999-2018 Gentoo Foundation
# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
SUMMARY="Support for printing to ZjStream-based printers"
HOMEPAGE="http://foo2zjs.rkkda.com/"
LICENCES="GPL-2"
SLOT="0"
PLATFORMS="~amd64 ~x86"
DEPENDENCIES="
build:
app-arch/unzip
app-editors/vim
net-misc/wget
sys-apps/ed
sys-apps/bc
run:
net-print/cups
net-print/cups-filters
net-print/cups-filters
test:
sys-process/time
"
DEFAULT_SRC_COMPILE_PARAMS+=( -j1 )
DEFAULT_SRC_INSTALL_PARAMS+=( -j1 )
#WORK=${WORKBASE}/${PNV}
src_unpack() {
edo mkdir "${WORK}"
edo wget "http://foo2zjs.rkkda.com/${PN}.tar.gz" -O "${WORK}/${PN}.tar.gz"
edo cd ${WORKBASE}/${PNV}
edo tar zxf "${WORK}/${PN}.tar.gz"
edo cd ${WORK}/${PN}
emake getweb
edo sed -e '/^WGETOPTS/s/-q//g' -i getweb
esandbox disable_net
edo ./getweb all
esandbox enable_net
}
DEFAULT_SRC_PREPARE_PATCHES=(
"${FILES}/${PN}-udev.patch"
"${FILES}/${PN}-usbbackend.patch"
)
src_prepare() {
WORK=${WORKBASE}/${PNV}/${PN}
edo cd ${WORK}
default
# Prevent an access violation, do not create symlinks on live file system
# during installation.
edo sed -e 's/ install-filter / /g' -i Makefile
}
src_install() {
dodir /usr/share/ppd
default
edo rmdir "${IMAGE}/usr/share/foo2hbpl/icm"
edo rmdir "${IMAGE}/usr/share/foo2hbpl"
edo rmdir "${IMAGE}/usr/share/foo2ddst/icm"
edo rmdir "${IMAGE}/usr/share/foo2ddst"
edo cd "${IMAGE}"
edo mkdir -p usr/$(exhost --target)/bin
edo mv usr/bin/* usr/$(exhost --target)/bin/
edo mv bin/* usr/$(exhost --target)/bin/
edo rmdir usr/bin
edo rmdir bin
}
|