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

David Runge dvzrv at archlinux.org
Sun Dec 3 22:30:46 UTC 2017


    Date: Sunday, December 3, 2017 @ 22:30:46
  Author: dvzrv
Revision: 272049

upgpkg: libircclient 1.9-3

Updating maintainer. Switching to https for url and source. Switching to sha512sums.
Minor fixes.

Modified:
  libircclient/trunk/PKGBUILD

----------+
 PKGBUILD |   38 +++++++++++++++++++-------------------
 1 file changed, 19 insertions(+), 19 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-03 22:11:23 UTC (rev 272048)
+++ PKGBUILD	2017-12-03 22:30:46 UTC (rev 272049)
@@ -1,5 +1,6 @@
 # $Id$
-# Maintainer:  speps <speps at aur dot archlinux dot org>
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: speps <speps at aur dot archlinux dot org>
 # Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
 # Contributor: Marcel Wysocki <maci at satgnu.net>
 # Contributor: coolkehon <coolkehon at g m a i l>
@@ -6,35 +7,36 @@
 
 pkgname=libircclient
 pkgver=1.9
-pkgrel=2
+pkgrel=3
 pkgdesc='Small but powerful library, which implements client-server IRC protocol'
 arch=('x86_64')
-url='http://www.ulduzsoft.com/libircclient/'
+url='https://www.ulduzsoft.com/linux/libircclient/'
 license=('GPL')
 depends=('openssl')
 makedepends=('python2-sphinx' 'python2-rst2pdf') 
-source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz")
-md5sums=('783c48fe9153ed55a5565c818a178d67')
+source=("https://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('6f424791fed94ecacdd5d0b2c04472b0ddba09da08a8efb76c115a2a6abedecdf0aab3a86632bdf0fbca78781256fb591d8c94ed8eb776c5f30557d5c426bd1c')
 
 prepare() {
-  cd $pkgname-$pkgver/src
+  cd "${pkgname}-${pkgver}"
 
   # fix include dir path
-  sed -i "s/@\/include/&\/$pkgname/" Makefile.in
+  sed -i "s/@\/include/&\/${pkgname}/" src/Makefile.in
+
   # support openssl 1.1
-  cd ..
   sed -e 's|SSL_library_init|OPENSSL_init_ssl|' -i configure.in
   autoreconf -vi
 }
 
 build() {
-  cd $pkgname-$pkgver
+  cd "${pkgname}-${pkgver}"
   ./configure --prefix=/usr \
               --libdir=/usr/lib \
               --enable-shared \
               --enable-openssl \
               --enable-ipv6
-  cd src && make
+  cd src
+  make
 
   cd ../doc
   make SPHINXBUILD=sphinx-build2 singlehtml man
@@ -41,19 +43,17 @@
 }
 
 package() {
-  cd $pkgname-$pkgver/src
-  make DESTDIR="$pkgdir" install
+  cd "${pkgname}-${pkgver}/src"
+  make DESTDIR="${pkgdir}" install
 
   # docs
-  install -d "$pkgdir/usr/share/doc/$pkgname"
-  cp -a ../doc/_build/singlehtml/* "$pkgdir/usr/share/doc/$pkgname"
+  install -d "${pkgdir}/usr/share/doc/${pkgname}"
+  cp -a ../doc/_build/singlehtml/* "${pkgdir}/usr/share/doc/${pkgname}"
 
   # man
-  install -Dm644 ../doc/_build/man/$pkgname.1 \
-    "$pkgdir/usr/share/man/man1/$pkgname.1"
+  install -Dm644 "../doc/_build/man/${pkgname}.1" \
+    "${pkgdir}/usr/share/man/man1/${pkgname}.1"
 
   # examples
-  install -d "$pkgdir/usr/share/$pkgname/examples"
-  install -Dm644 ../examples/* \
-    "$pkgdir"/usr/share/$pkgname/examples
+  install -t "${pkgdir}/usr/share/${pkgname}/examples" -Dm644 ../examples/*
 }



More information about the arch-commits mailing list