summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 282bc3e769e812ab5375c02ae5151306a1067b0c (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
# Maintainer: Ivan Zenin <i.zenin@gmx.com>

pkgname=amule-remote-git
pkgver=latest
pkgrel=2
pkgdesc='An eMule-like client for the eD2k and Kademlia p2p networks (remote GUI only, development version)'
url='http://www.amule.org'
arch=('i686' 'x86_64')
license=('GPL')
depends=('crypto++' 'geoip' 'geoip-database' 'wxgtk>=2.8')
makedepends=('git')
conflicts=('amule')
source=('git+git://github.com/amule-project/amule.git')
md5sums=('SKIP')

pkgver() {
  cd ${srcdir}/amule
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

build() {
  cd "${srcdir}"/amule
  ./autogen.sh && ./configure \
      --prefix=/usr \
      --mandir=/usr/share/man \
      --disable-monolithic \
      --disable-amule-daemon \
      --disable-amulecmd \
      --disable-webserver \
      --enable-amule-gui \
      --disable-cas \
      --disable-wxcas \
      --disable-ed2k \
      --disable-alc \
      --disable-alcc \
      --disable-xas \
      --disable-fileview \
      --disable-plasmamule \
      --disable-static \
      --disable-kde-in-home \
      --enable-geoip \
      --disable-upnp \
      --disable-debug \
      --disable-profile \
      --enable-optimize \
      --enable-mmap \
      --enable-nls \
      --disable-ccache \
      --with-wx-config=/usr/bin/wx-config
  make
} 

package() {
  cd "${srcdir}"/amule
  make DESTDIR="${pkgdir}" install
  find "${pkgdir}" -type d -name .git -exec rm -r '{}' +
  install -dm750 -o129 -g129 "${pkgdir}/var/lib/amule"
  rm -fr "${pkgdir}/usr/share"/{pixmaps,applications}
}