[arch-commits] Commit in dbus-c++/trunk (PKGBUILD)

David Runge dvzrv at archlinux.org
Mon Dec 18 21:32:53 UTC 2017


    Date: Monday, December 18, 2017 @ 21:32:51
  Author: dvzrv
Revision: 274809

upgpkg: dbus-c++ 0.9.0-8

Updating maintainer. Switching to proper website for url. Switching to LGPL as license.
Switching to https for source. Switching to sha512sums. Removing unneeded makedepends. Calling autoreconf in prepare().
Properly calling ./configure in build(). Installing various docs. Minor fixes.

Modified:
  dbus-c++/trunk/PKGBUILD

----------+
 PKGBUILD |   58 +++++++++++++++++++++++++++++++++-------------------------
 1 file changed, 33 insertions(+), 25 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-18 21:31:40 UTC (rev 274808)
+++ PKGBUILD	2017-12-18 21:32:51 UTC (rev 274809)
@@ -1,49 +1,57 @@
-# Maintainer: Ray Rashif <schiv at archlinux.org>
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: Ray Rashif <schiv at archlinux.org>
 # Contributor: Xavier D. <magicrhesus at ouranos.be>
 # Contributor: Zarra <zarraxx at gmail.com>
 
 pkgname=dbus-c++
-_pkgname=lib$pkgname
+_pkgname="lib${pkgname}"
+_upstream="dbus-cplusplus"
 pkgver=0.9.0
-pkgrel=7
+pkgrel=8
 pkgdesc="A C++ API for D-BUS"
-url="http://sourceforge.net/projects/dbus-cplusplus/"
+url="http://dbus-cplusplus.sourceforge.net/"
 arch=('x86_64')
-license=('GPL')
-depends=('dbus>=1.2.0' 'glib2')
-makedepends=('autoconf' 'automake' 'libtool')
-source=("http://sourceforge.net/projects/dbus-cplusplus/files/dbus-c%2B%2B/$pkgver/libdbus-c%2B%2B-$pkgver.tar.gz"
-	      'gcc47.patch'
+license=('LGPL')
+depends=('dbus' 'glib2')
+source=("https://sourceforge.net/projects/${_upstream}/files/${pkgname}/${pkgver}/${_pkgname}-${pkgver}.tar.gz"
+        'gcc47.patch'
         'disable-threading.patch'
         'fix-writechar.patch')
-sha256sums=('bc11ac297b3cb010be904c72789695543ee3fdf3d75cdc8225fd371385af4e61'
-            '9d504faf769026dcaabca94c7645373fcadf43ef93c8263c6a85e905798f07c9'
-            '38730ee73fe4de320fceab6619579b55861b6b8e0f6d8069a9ddf3d1ad1266c0'
-            '34ada5bf31918c63558d0fb3fff63e0f1596f25082ff22e84117927ad7236fce')
- 
+sha512sums=('7acebbb4254b2886cc0f05c5ddeeeac0b5863c5552d32249463b89380b0b95b8225c80bd98b8c7fcaada42ab770b5eff41b15390cd0d78bf1ee322ac6c2de319'
+            'd8618e1eafd25be074ffecf958fbc04f1b2a844c865ec2d795565809a5d11e7f60c1a8c3a6d952b1485af6b199753b36c06f1759a5559274eed55cf5e6585e20'
+            '94d95089ea84af1438191285955bf0866a7d7cbe535ac7fb8282ef6fb96c4ee052f439fb8c9d0b18b9ebec65d39cc45754bb48192ffb46c3d0c4ed6b1b6693a6'
+            'df0a3a80d139877eaea5f352da5dfa2bc0407360ddfb59301707c77bd4329ecd986f366f27bbdd7e4ce385125c6ec46fcf115854aa01d97cf11dff905cd9a385')
+
 prepare() {
-    cd "$srcdir/$_pkgname-$pkgver"
-    patch -Np0 -i "$srcdir/gcc47.patch"
-    patch -Np1 -i "$srcdir/disable-threading.patch"
-    patch -Np1 -i "$srcdir/fix-writechar.patch"
+    cd "${_pkgname}-${pkgver}"
+    patch -Np0 -i "${srcdir}/gcc47.patch"
+    patch -Np1 -i "${srcdir}/disable-threading.patch"
+    patch -Np1 -i "${srcdir}/fix-writechar.patch"
+    autoreconf -vi
 }
 
 build() {
-    cd "$srcdir/$_pkgname-$pkgver"
+    cd "${_pkgname}-${pkgver}"
 
     export LDFLAGS+=" -lexpat -lpthread" # -lpthread needed for i686
 
-    ./autogen.sh --prefix=/usr \
-                 --disable-static \
-                 --enable-glib \
-                 --disable-ecore
+    ./configure --prefix=/usr \
+                --disable-static \
+                --disable-ecore \
+                --enable-glib
     make
 }
 
 package() {
-  cd "$srcdir/$_pkgname-$pkgver"
+  cd "${_pkgname}-${pkgver}"
 
-  make DESTDIR="$pkgdir" install
+  make DESTDIR="${pkgdir}" install
+  install -Dm644 AUTHORS "${pkgdir}/usr/share/doc/${pkgname}/AUTHORS"
+  install -Dm644 ChangeLog "${pkgdir}/usr/share/doc/${pkgname}/ChangeLog"
+  install -Dm644 NEWS "${pkgdir}/usr/share/doc/${pkgname}/NEWS"
+  install -Dm644 README "${pkgdir}/usr/share/doc/${pkgname}/README"
+  install -Dm644 TODO "${pkgdir}/usr/share/doc/${pkgname}/TODO"
+
 }
 
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list