summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 48318ff88754fa176b07b0e04ef0768df024ca68 (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
pkgname=amule-git
pkgver=2.3.2.r49.dc0f6c6f7
pkgrel=1
pkgdesc="Client for the eD2k and Kad networks"
arch=(i686 x86_64)
url=http://amule.org/
license=(GPL)
depends=(boost-libs crypto++ geoip libupnp wxgtk2)
makedepends=(autoconf automake boost git pkg-config)
conflicts=(amule)
source=(
git+https://github.com/amule-project/amule.git
#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://gitlab.com/palopezv/aur-amule-git-patches/raw/master/amuled@.service
https://gitlab.com/palopezv/aur-amule-git-patches/raw/master/use_xdg-open_as_preview_default.diff
https://gitlab.com/palopezv/aur-amule-git-patches/raw/master/version_check.diff
)
sha256sums=('SKIP'
            'b8ade9930c00c411958758a2f8267c0a56320270fc06b2ee15243a027795745d'
            '902f8f719c1c02335880621717f23c683da8edbb31add75d3e1267b190e03b9c'
            '7bf39a64a723ab3e55ccfef93df2ec9cdd8108e56aa0733a4412755931cb3244')

pkgver() {
  cd amule/
  git describe | sed 's/-/.r/; s/-g/./'
}

prepare() {
  cd amule/
  patch -Np1 <$srcdir/use_xdg-open_as_preview_default.diff
  patch -Np1 <$srcdir/version_check.diff
}

build() {
  cd amule/
  ./autogen.sh
  local confargs=(
    --disable-debug
    --disable-rpath
    --enable-alcc
    --enable-geoip
    --enable-mmap
    --enable-optimize
    --prefix=/usr
    --with-boost
  )
  ./configure ${confargs[@]}
  make
}

check() {
  make -C amule/ check
}

package() {
  make -C amule/ DESTDIR=$pkgdir install
}