mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
|
|
# Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>
|
|
# 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
|
|
|
|
pkgname=libtorrent
|
|
pkgver=0.13.8
|
|
pkgrel=1
|
|
pkgdesc='BitTorrent library with a focus on high performance and good code'
|
|
url='https://rakshasa.github.io/rtorrent/'
|
|
arch=('x86_64')
|
|
license=('GPL')
|
|
depends=('openssl')
|
|
source=("https://github.com/rakshasa/rtorrent/releases/download/v0.9.${pkgver##*.}/${pkgname}-${pkgver}.tar.gz")
|
|
sha256sums=('ed115a28f4ae8cfcd33b94a597c076ca74fd549867a26e4fac9505c27288e983')
|
|
|
|
prepare() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
./autogen.sh
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
export CXXFLAGS+=' -fno-strict-aliasing'
|
|
|
|
[[ $CARCH == 'arm' ]] && CONFIG='--enable-aligned'
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--disable-debug $CONFIG
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|