diff options
author | Chocobo1 | 2017-08-26 11:05:24 +0800 |
---|---|---|
committer | Chocobo1 | 2017-08-26 11:05:24 +0800 |
commit | 42c562b01e77ed4b81c3762610cb59e90c7be332 (patch) | |
tree | 71bbc3c9686ecc844df20518f257bfa45b98c7d4 | |
parent | bee1a324b530c9fd7d567fb6766bc663af3c8158 (diff) | |
download | aur-42c562b01e77ed4b81c3762610cb59e90c7be332.tar.gz |
upgpkg: libtorrent-rasterbar-1_1-git 1.1.4.r23.g41bfd41ce-1
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 28 |
2 files changed, 16 insertions, 17 deletions
@@ -1,7 +1,7 @@ pkgbase = libtorrent-rasterbar-1_1-git pkgdesc = A C++ BitTorrent library that aims to be a good alternative to all the other implementations around (git branch RC_1_1) - pkgver = 1.1.4.r16.g50c2aee8e - pkgrel = 2 + pkgver = 1.1.4.r23.g41bfd41ce + pkgrel = 1 url = http://www.libtorrent.org/ arch = i686 arch = x86_64 @@ -14,6 +14,7 @@ pkgbase = libtorrent-rasterbar-1_1-git provides = libtorrent-rasterbar conflicts = libtorrent-rasterbar options = staticlibs + options = !strip source = git+https://github.com/arvidn/libtorrent.git#branch=RC_1_1 sha256sums = SKIP @@ -1,8 +1,8 @@ # Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> pkgname=libtorrent-rasterbar-1_1-git -pkgver=1.1.4.r16.g50c2aee8e -pkgrel=2 +pkgver=1.1.4.r23.g41bfd41ce +pkgrel=1 pkgdesc="A C++ BitTorrent library that aims to be a good alternative to all the other implementations around (git branch RC_1_1)" arch=('i686' 'x86_64') url="http://www.libtorrent.org/" @@ -11,22 +11,25 @@ depends=('boost-libs') makedepends=('git' 'boost' 'python2' 'python') provides=('libtorrent-rasterbar') conflicts=('libtorrent-rasterbar') -options=('staticlibs') +options=('staticlibs' '!strip') source=('git+https://github.com/arvidn/libtorrent.git#branch=RC_1_1') sha256sums=('SKIP') -prepare() { - mkdir -p py2 py3 +pkgver() { cd "libtorrent" - ./autotool.sh + git describe --long --tags | sed 's/^[A-Za-z]*-//;s/\([^-]*-g\)/r\1/;s/[_-]/./g' } -pkgver() { +build() { cd "libtorrent" + ./autotool.sh - git describe --long --tags | sed 's/^[A-Za-z]*-//;s/\([^-]*-g\)/r\1/;s/[_-]/./g' + cd "$srcdir" + mkdir -p "py2" "py3" + _build 2 + _build 3 } _build() ( @@ -40,19 +43,14 @@ _build() ( CXXFLAGS="$CXXFLAGS -std=c++11" \ PYTHON="/usr/bin/python$1" \ ../libtorrent/configure \ - --prefix=/usr \ - --enable-python-binding \ + --prefix="/usr" \ --with-libiconv \ + --enable-python-binding \ --with-boost-python="$_boost" make ) -build() { - _build 2 - _build 3 -} - package() { make -C py2 DESTDIR="$pkgdir" install make -C py3 DESTDIR="$pkgdir" install |