blob: a84e4e53ca1f77b8f62acc3d001a92d99eabeb8d (
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
77
78
79
80
81
82
83
|
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
pkgname=amule-daemon
pkgver=r11121
_pkgcomm=d6693fb
pkgrel=2
pkgdesc='An eMule-like client for the eD2k and Kademlia p2p networks. (Only Daemon, CLI tools and Webserver)'
url='http://www.amule.org'
arch=('x86_64' 'armv7h')
license=('GPL')
depends=('wxwidgets-common-light'
'crypto++'
'libupnp'
'libpng'
'boost-libs'
)
makedepends=('boost')
conflicts=('amule')
optdepends=('kamule: AmuleGUI for KDE')
source=("aMule-SVN-${pkgver}.tar.bz2::http://repo.or.cz/w/amule.git/snapshot/${_pkgcomm}.tar.gz"
'https://patch-diff.githubusercontent.com/raw/amule-project/amule/pull/298.diff'
'amuled.service'
'amuled@.service'
'amuleweb.service'
'amule.sysuser'
'amule.tmpfiles'
)
sha256sums=('f1371c1915fd01214a80d9aae3c414ecafc2fb40bbdeb1553c541133ce041dc2'
'548ad7468888c49ecbbaf47ac745e38ed24c70967d12d5592f6b3d59fbdf01b1'
'339d59211bd914dfa43c6c54b68e2715f9648de3220d712c01c004eda19a5b7a'
'52824abdd4724db7c8c4bfc05779849c06de04b4795b3d77c98de1baa3a0babc'
'f50c46605d3ae977913f4dcf0c7405e0bdc84322d1fc877ae851706f0e1ae5fd'
'bc870ebde3c5e009605ca76435790ea260a848160db643bf37e4f9de48b5e56c'
'6af2edd8a1a9cc270f7d79e332e54d84c01e1c0b88f0ee72a13df879facc8df4'
)
install=amule-daemon.install
prepare() {
mkdir -p build
cd "amule-${_pkgcomm}"
patch -p1 -i "${srcdir}/298.diff"
./autogen.sh
}
build() {
cd build
CPPFLAGS+=" -DwxHAS_LARGE_FILES=1" \
../"amule-${_pkgcomm}/configure" \
--prefix=/usr \
--disable-monolithic \
--enable-alcc \
--enable-amule-daemon \
--enable-amulecmd \
--enable-fileview \
--enable-optimize \
--enable-upnp \
--enable-webserver \
--enable-mmap \
--with-boost \
--with-toolkit=base \
--with-wx-config=/usr/bin/wx-config-base
make
}
package() {
make -C build DESTDIR="${pkgdir}" install
install -Dm755 build/src/utils/fileview/mulefileview "${pkgdir}/usr/bin/mulefileview"
install -Dm755 "amule-${_pkgcomm}/src/utils/scripts/mldonkey_importer.pl" "${pkgdir}/usr/share/amule/mldonkey_importer.pl"
install -Dm755 "amule-${_pkgcomm}/src/utils/scripts/kadnodescreate.pl" "${pkgdir}/usr/share/amule/kadnodescreate.pl"
install -Dm644 "${srcdir}/amuled.service" "${pkgdir}/usr/lib/systemd/system/amuled.service"
install -Dm644 "${srcdir}/amuled@.service" "${pkgdir}/usr/lib/systemd/user/amuled.service"
install -Dm644 "${srcdir}/amuleweb.service" "${pkgdir}/usr/lib/systemd/system/amuleweb.service"
install -Dm644 "${srcdir}/amule.sysuser" "${pkgdir}/usr/lib/sysusers.d/amule.conf"
install -Dm644 "${srcdir}/amule.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/amule.conf"
rm -fr "${pkgdir}/usr/share/"{pixmaps,applications}
}
|