summaryrefslogtreecommitdiff
path: root/pcr/libtorrent-extended/PKGBUILD
diff options
context:
space:
mode:
authorAurelien Desbrieres <aurelien@hackers.camp>2014-12-19 18:50:17 +0100
committerAurelien Desbrieres <aurelien@hackers.camp>2014-12-19 18:50:17 +0100
commit13e56ca02d4250b037853953afca493eb7d40bb2 (patch)
treec704bffb090e3a57b2c6d84d0c6d91a1b0976b3b /pcr/libtorrent-extended/PKGBUILD
parent5a9d7f349389ea70e03d430b46186ddda98f68a8 (diff)
downloadabslibre-13e56ca02d4250b037853953afca493eb7d40bb2.tar.gz
abslibre-13e56ca02d4250b037853953afca493eb7d40bb2.tar.bz2
abslibre-13e56ca02d4250b037853953afca493eb7d40bb2.zip
BitTorrent library written in C++ with eXtended patches.
Diffstat (limited to 'pcr/libtorrent-extended/PKGBUILD')
-rw-r--r--pcr/libtorrent-extended/PKGBUILD71
1 files changed, 71 insertions, 0 deletions
diff --git a/pcr/libtorrent-extended/PKGBUILD b/pcr/libtorrent-extended/PKGBUILD
new file mode 100644
index 000000000..8f6c49008
--- /dev/null
+++ b/pcr/libtorrent-extended/PKGBUILD
@@ -0,0 +1,71 @@
+# Maintainer : Aurelien Desbrieres <aurelien@hackers.camp>
+# Contributor: Lucky <aur.archlinux.org [at] lucky.take0ver [dot] net>
+# Contributor: Daenyth <Daenyth+Arch [at] gmail [dot] com>
+# Contributor: Jeff Mickey <jeff@archlinux.org>
+# Contributor: sh__
+
+pkgname=libtorrent-extended
+_pkgname="libtorrent"
+#_pkgname="${pkgname%-*}" # currently not work with bauerbill
+pkgver=0.12.6
+pkgrel=7
+pkgdesc="BitTorrent library written in C++ with eXtended patches."
+arch=("i686" "x86_64")
+url="http://libtorrent.rakshasa.no"
+license=("GPL")
+depends=("libsigc++" "openssl")
+conflicts=("${_pkgname}")
+provides=("${_pkgname}")
+options=("!libtool")
+#eXtended patches {{{
+_magnet_uri=1
+_ipv6=1
+_friend=1
+_bad_peer_handling=1
+_show_idle_times=1
+#}}}
+source=("${url}/downloads/${_pkgname}-${pkgver}.tar.gz"
+ "ex_magnet_uri.patch"
+ "ex_ipv6.patch"
+ "ex_friend.patch"
+ "ex_bad_peer_handling.patch"
+ "ui_show_idle_times.patch"
+ "fix_gcc_4.6.0.patch")
+
+build() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+
+ #eXtended patches {{{
+ if [[ "${_magnet_uri}" = "1" || "${_ipv6}" = "1" ]]; then
+ echo "ex_magnet_uri.patch"
+ patch -uNp1 -i "${srcdir}/ex_magnet_uri.patch"
+ fi
+ if [[ "${_ipv6}" = "1" ]]; then
+ echo "ex_ipv6.patch"
+ patch -uNp1 -i "${srcdir}/ex_ipv6.patch"
+ _cfg_opts="--enable-ipv6"
+ fi
+ if [[ "${_friend}" = "1" ]]; then
+ echo "ex_friend.patch"
+ patch -uNp1 -i "${srcdir}/ex_friend.patch"
+ fi
+ if [[ "${_bad_peer_handling}" = "1" ]]; then
+ echo "ex_bad_peer_handling.patch"
+ patch -uNp1 -i "${srcdir}/ex_bad_peer_handling.patch"
+ fi
+ if [[ "${_show_idle_times}" = "1" ]]; then
+ echo "ui_show_idle_times.patch"
+ patch -uNp1 -i "${srcdir}/ui_show_idle_times.patch"
+ fi
+ #}}}
+
+ echo "fix_gcc_4.6.0.patch"
+ patch -uNp1 -i "${srcdir}/fix_gcc_4.6.0.patch"
+
+ ./autogen.sh
+ CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" \
+ ./configure --prefix=/usr --disable-debug "${_cfg_opts}"
+ make
+ make DESTDIR="${pkgdir}" install
+}
+# vim:set ts=2 sw=2 et: