gtk/amule/PKGBUILD
2017-11-02 14:42:59 +00:00

57 lines
1.5 KiB
Bash

pkgname=amule
pkgver=2.3.2+49+dc0f6c6f7
pkgrel=1
epoch=1
pkgdesc="An eMule-like client for ed2k p2p network"
arch=('x86_64')
url="http://www.amule.org"
license=('GPL')
depends=('wxgtk' 'gd' 'geoip' 'libupnp' 'crypto++' 'libsm')
makedepends=('ccache' 'git' 'boost')
install=amule.install
source=("git+https://github.com/amule-project/amule.git#commit=dc0f6c6"
'amuled.systemd'
'amuleweb.systemd')
sha256sums=('SKIP'
'527a2cca6d56b8269722aafc77a89734f59a929f946f342bd0f69b256f9c7522'
'f4f43b1154ddccc9036a4291a58c6715f097b171fec62ea7aead0c9d9fa654f2')
pkgver(){
cd $pkgname
git describe --long | sed 's/\([^-]*-\)g/\1/;s/-/+/g'
}
build() {
cd $pkgname
./autogen.sh
./configure --prefix=/usr \
--mandir=/usr/share/man \
--enable-cas \
--enable-wxcas \
--enable-amule-daemon \
--enable-amulecmd \
--enable-amule-gui \
--enable-alc \
--enable-alcc \
--enable-webserver \
--disable-debug \
--enable-optimize \
--enable-profile \
--enable-mmap \
--enable-ccache \
--enable-geoip \
--enable-upnp \
--enable-fileview \
--with-boost
make
}
package() {
cd $pkgname
make DESTDIR=$pkgdir install
install -D -m644 ../amuled.systemd $pkgdir/usr/lib/systemd/system/amuled.service
install -D -m644 ../amuleweb.systemd $pkgdir/usr/lib/systemd/system/amuleweb.service
}