[arch-commits] Commit in asio/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Tue Mar 20 20:26:13 UTC 2018


    Date: Tuesday, March 20, 2018 @ 20:26:12
  Author: anthraxx
Revision: 319709

upgpkg: asio 1.12.0-1

Modified:
  asio/trunk/PKGBUILD

----------+
 PKGBUILD |   39 ++++++++++++++++++++++++---------------
 1 file changed, 24 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-03-20 20:24:38 UTC (rev 319708)
+++ PKGBUILD	2018-03-20 20:26:12 UTC (rev 319709)
@@ -1,29 +1,38 @@
-# $Id$
-# Maintainer: Giovanni Scafora <giovanni at archlinux.org>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Giovanni Scafora <giovanni at archlinux.org>
 # Contributor: Aaron Griffin <aaron at archlinux.org>
 
 pkgname=asio
-pkgver=1.10.8
+pkgver=1.12.0
 pkgrel=1
-pkgdesc="Cross-platform C++ library for ASynchronous network I/O"
+pkgdesc='Cross-platform C++ library for ASynchronous network I/O'
+url='https://think-async.com/Asio/'
 arch=('x86_64')
-url="http://asio.sourceforge.net"
-license=('custom')
-depends=('boost')
-source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2")
-md5sums=('59702ae78da4c45e5fffad39b062cf42')
+license=('custom:boost')
+makedepends=('boost')
+source=(https://github.com/chriskohlhoff/asio/archive/asio-${pkgver//./-}.tar.gz)
+sha256sums=('fa8c3a16dc2163f5b3451f2a14ce95277c971f46700497d4e94af6059c00dc06')
 
+prepare() {
+  cd ${pkgname}-${pkgname}-${pkgver//./-}/asio
+  autoreconf -fiv
+}
+
 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-
+  cd ${pkgname}-${pkgname}-${pkgver//./-}/asio
   ./configure --prefix=/usr
   make
 }
 
+check() {
+  cd ${pkgname}-${pkgname}-${pkgver//./-}/asio
+  make check
+}
+
 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-
+  cd ${pkgname}-${pkgname}-${pkgver//./-}/asio
   make DESTDIR=${pkgdir} install
-  #license
-  install -D -m644 LICENSE_1_0.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -Dm 644 COPYING LICENSE_1_0.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
 }
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list