Date: Thursday, October 4, 2018 @ 23:33:49
  Author: dvzrv
Revision: 389691

upgpkg: libircclient 1.10-1

Upgrading to 1.10. Minor fixes.

Modified:
  libircclient/trunk/PKGBUILD

----------+
 PKGBUILD |   34 ++++++++++++++--------------------
 1 file changed, 14 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-10-04 22:40:08 UTC (rev 389690)
+++ PKGBUILD    2018-10-04 23:33:49 UTC (rev 389691)
@@ -5,8 +5,8 @@
 # Contributor: coolkehon <coolkehon at g m a i l>
 
 pkgname=libircclient
-pkgver=1.9
-pkgrel=3
+pkgver=1.10
+pkgrel=1
 pkgdesc='Small but powerful library, which implements client-server IRC 
protocol'
 arch=('x86_64')
 url='https://www.ulduzsoft.com/linux/libircclient/'
@@ -14,16 +14,12 @@
 depends=('openssl')
 makedepends=('python2-sphinx' 'python2-rst2pdf') 
 
source=("https://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz";)
-sha512sums=('6f424791fed94ecacdd5d0b2c04472b0ddba09da08a8efb76c115a2a6abedecdf0aab3a86632bdf0fbca78781256fb591d8c94ed8eb776c5f30557d5c426bd1c')
+sha512sums=('d677ceae0bfabc112671b351fb94d048399a7ad025ff33a2ff1ae6313382fcc78b64d499f2c882eb8b894abdde949562395819e4059fd14640dfae6757b0c259')
 
 prepare() {
   cd "${pkgname}-${pkgver}"
-
   # fix include dir path
   sed -i "s/@\/include/&\/${pkgname}/" src/Makefile.in
-
-  # support openssl 1.1
-  sed -e 's|SSL_library_init|OPENSSL_init_ssl|' -i configure.in
   autoreconf -vi
 }
 
@@ -34,25 +30,23 @@
               --enable-shared \
               --enable-openssl \
               --enable-ipv6
-  cd src
-  make
-
-  cd ../doc
-  make SPHINXBUILD=sphinx-build2 singlehtml man
+  make -C src
+  make -C doc SPHINXBUILD=sphinx-build2 singlehtml man
 }
 
 package() {
-  cd "${pkgname}-${pkgver}/src"
-  make DESTDIR="${pkgdir}" install
+  cd "${pkgname}-${pkgver}"
+  make -C src DESTDIR="${pkgdir}" install
 
   # docs
   install -d "${pkgdir}/usr/share/doc/${pkgname}"
-  cp -a ../doc/_build/singlehtml/* "${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 -Dm 644 "doc/_build/man/${pkgname}.1" \
+    -t "${pkgdir}/usr/share/man/man1/"
   # examples
-  install -t "${pkgdir}/usr/share/${pkgname}/examples" -Dm644 ../examples/*
+  install -Dm 644 examples/* -t "${pkgdir}/usr/share/${pkgname}/examples"
+  # docs
+  install -vDm 644 {Changelog,README,THANKS} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
 }

Reply via email to