# Maintainer: Felix Kauselmann # Contributor: droserasprout # Contributor: atommixz pkgname=airdcpp-webclient pkgver=2.5.0 pkgrel=2 pkgdesc="A peer-to-peer file sharing client with web user interface" arch=('x86_64' 'armv7h') license=('GPL2') url="https://github.com/airdcpp-web/${pkgname}" depends=('miniupnpc' 'boost' 'libmaxminddb' 'leveldb' 'openssl' 'geoip' 'leveldb' 'websocketpp' 'libnatpmp' 'intel-tbb') makedepends=('cmake' 'git' 'npm') source=("https://github.com/airdcpp-web/airdcpp-webclient/archive/${pkgver}.tar.gz" "boost.patch") md5sums=('17e80ed002f6e956b39a2bb4154ea776' '03dd07a2bc073e5c4ca29b8f1480b2a5') prepare() { cd "${srcdir}/${pkgname}-${pkgver}/airdcpp-core" patch -p2 --ignore-whitespace < "${srcdir}/boost.patch" } build() { cd "${srcdir}/${pkgname}-${pkgver}" cmake ./ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="$pkgdir" install }