blob: a34aa090fe60182fe22a9db674c407c45f974ac8 (
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
pkgname=amule-git
pkgver=2.4.0.r10323.d3c6603
pkgrel=1
pkgdesc='Client for the eD2k and Kad networks'
arch=(i686 x86_64)
url=http://amule.org/
license=(GPL)
depends=(
# boost-libs
crypto++
gd
geoip
libupnp
wxgtk2.8
)
makedepends=(
# boost
git
)
conflicts=(amule)
backup=(usr/share/webapps/amps/index.php
usr/share/webapps/amps/style.css)
source=(
git+https://github.com/amule-project/amule.git
http://svgicons.o7a.net/unofficial/amule.png
https://anonscm.debian.org/cgit/pkg-amule/amule.git/plain/debian/patches/configure_ignore_gdlib-config_garbage.diff
https://anonscm.debian.org/cgit/pkg-amule/amule.git/plain/debian/patches/use_xdg-open_as_preview_default.diff
https://anonscm.debian.org/cgit/pkg-amule/amule.git/plain/debian/patches/version_check.diff
https://raw.githubusercontent.com/pld-linux/aMule/master/aMule-cas-datadir.patch
)
sha256sums=(SKIP
737873e5f29dabaca6f9ac96b612eda8cba0236b6618e380107ea7d1d7665b78
594a667bac53d3c881523c8c1a49d622a0752d84e0601aef062a586493ba998e
902f8f719c1c02335880621717f23c683da8edbb31add75d3e1267b190e03b9c
7bf39a64a723ab3e55ccfef93df2ec9cdd8108e56aa0733a4412755931cb3244
897ac890b5f1b8cb4b53fded313cb2779bed5d39041a320885dd9dbe30878879)
pkgver() {
cd amule/
printf %s.r%s.%s $(grep '#define VERSION' src/include/common/ClientVersion.h |
cut -d \" -f2) $(git rev-list --count HEAD) $(git rev-parse --short HEAD)
}
prepare() {
cd amule/
patch -Np1 < $srcdir/aMule-cas-datadir.patch
patch -Np1 < $srcdir/configure_ignore_gdlib-config_garbage.diff
patch -Np1 < $srcdir/use_xdg-open_as_preview_default.diff
patch -Np1 < $srcdir/version_check.diff
sed -i 's\./LucidaSansRegular.ttf\/usr/share/fonts/TTF/DejaVuSans.ttf\' src/utils/amps/index.php
sed -i 's\/usr/share/fonts/corefonts/times.ttf\/usr/share/fonts/TTF/DejaVuSerif.ttf\' \
src/utils/cas/configfile.c
}
build() {
cd amule/
./autogen.sh
local confopts=(
--disable-debug
--disable-rpath
--enable-alcc
--enable-amule-daemon
--enable-amulecmd
--enable-cas
--enable-ccache
--enable-fileview
--enable-geoip
--enable-mmap
--enable-optimize
--enable-webserver
--enable-xas
--prefix=/usr
# --with-boost
--with-wx-config=wx-config-2.8
)
./configure ${confopts[@]}
make
}
package() {
cd amule/
make DESTDIR=$pkgdir install
rm $pkgdir/usr/share/pixmaps/amule.*
install -m644 $srcdir/amule.png $pkgdir/usr/share/pixmaps/
install src/utils/fileview/mulefileview $pkgdir/usr/bin/
ln -rs $pkgdir/usr/bin/mulefileview $pkgdir/usr/bin/fileview
install -d $pkgdir/usr/share/webapps/amps/
install -m644 $(find src/utils/amps -maxdepth 1 -type f) $pkgdir/usr/share/webapps/amps/
install -d $pkgdir/usr/share/webapps/amps/langs/
install -m644 src/utils/amps/langs/* $pkgdir/usr/share/webapps/amps/langs/
install -d $pkgdir/usr/share/webapps/amps/images/
install -m644 src/utils/amps/images/* $pkgdir/usr/share/webapps/amps/images/
install -m644 *.txt docs/{*.dia,AUTHORS,COPYING,README.*} README* $pkgdir/usr/share/doc/amule/
install -d $pkgdir/usr/share/doc/amule/cas/
install -m644 src/utils/cas/README $pkgdir/usr/share/doc/amule/cas/
install -d $pkgdir/usr/share/doc/amps/
ln -rs $pkgdir/usr/share/webapps/amps/{CHANGELOG,COPYING,README,SETTINGS,TODO} \
$pkgdir/usr/share/doc/amps/
ln -rs $pkgdir/usr/share/doc/amps/ $pkgdir/usr/share/doc/amule/
}
|