PKGBUILDs/community/libtorrent/PKGBUILD

43 lines
1.1 KiB
Bash
Raw Normal View History

2013-10-22 01:59:38 +00:00
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
2015-09-05 19:35:19 +00:00
# Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>
2013-10-22 01:59:38 +00:00
# Contributor: Daenyth <Daenyth+Arch [at] gmail [dot] com>
# Contributor: Jeff Mickey <jeff@archlinux.org>
# Contributor: sh__
# ALARM: jdoe0
# --enable-aligned flag is required to work correctly on armv5
2013-10-22 01:59:38 +00:00
pkgname=libtorrent
2019-07-19 18:50:54 +00:00
pkgver=0.13.8
2020-07-10 01:20:10 +00:00
pkgrel=2
2013-10-22 01:59:38 +00:00
pkgdesc='BitTorrent library with a focus on high performance and good code'
2019-07-19 18:50:54 +00:00
url='https://rakshasa.github.io/rtorrent/'
2018-06-07 12:38:07 +00:00
arch=('x86_64')
2013-10-22 01:59:38 +00:00
license=('GPL')
depends=('openssl')
2019-07-19 18:50:54 +00:00
source=("https://github.com/rakshasa/rtorrent/releases/download/v0.9.${pkgver##*.}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('ed115a28f4ae8cfcd33b94a597c076ca74fd549867a26e4fac9505c27288e983')
2013-10-22 01:59:38 +00:00
2015-07-13 21:21:37 +00:00
prepare() {
2017-04-24 19:06:41 +00:00
cd "${srcdir}/${pkgname}-${pkgver}"
2018-06-07 12:38:07 +00:00
./autogen.sh
2015-07-13 21:21:37 +00:00
}
2013-10-22 01:59:38 +00:00
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
2018-06-07 12:38:07 +00:00
export CXXFLAGS+=' -fno-strict-aliasing'
2013-10-23 00:01:20 +00:00
[[ $CARCH == 'arm' ]] && CONFIG='--enable-aligned'
./configure \
--prefix=/usr \
--disable-debug $CONFIG
2013-10-22 01:59:38 +00:00
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
}