Date: Saturday, December 2, 2017 @ 20:55:03 Author: dvzrv Revision: 271927
upgpkg: cwiid 0.6.00+svn201-2 Updating maintainer. Switching to sha512sums. Using autoreconf in prepare(). Fixing LDFLAGS in build() to properly use pthread and bluetooth. Minor fixes. Modified: cwiid/trunk/PKGBUILD ----------+ PKGBUILD | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-12-02 20:44:35 UTC (rev 271926) +++ PKGBUILD 2017-12-02 20:55:03 UTC (rev 271927) @@ -1,5 +1,6 @@ # $Id$ -# Maintainer : speps <speps at aur dot archlinux dot org> +# Maintainer : David Runge <[email protected]> +# Contributor: speps <speps at aur dot archlinux dot org> # Contributor: Ray Rashif <[email protected]> # Contributor: Wieland Hoffmann <[email protected]> # Contributor: Birger Moellering <[email protected]> @@ -8,7 +9,7 @@ pkgname=cwiid pkgver=0.6.00+svn201 -pkgrel=1 +pkgrel=2 pkgdesc="Linux Nintendo Wiimote interface" arch=('x86_64') url="http://abstrakraft.org/cwiid" @@ -16,33 +17,33 @@ license=('GPL') install="$pkgname.install" source=("https://github.com/abstrakraft/cwiid/archive/svn_history.tar.gz") -md5sums=('e1bc290504dc53f02581866eed0b85c3') +sha512sums=('25c105c37ae0778b6e47c4a02bfc74380f3b3dcc4cb71a3968a243a7de33c55d8b6d7860d826d1d5a6a197223fdb6022effd27d40394ca7007d997694438739b') prepare() { - cd $pkgname-svn_history + cd "${pkgname}-svn_history" + # fixing ldconfig use in configure sed -i '/ldconfig/s/WITH/ENABLE/' configure.ac - aclocal - autoconf -f + autoreconf -fi } build() { - cd $pkgname-svn_history + cd "${pkgname}-svn_history" ./configure --prefix=/usr \ --sysconfdir=/etc \ --with-python=python2 \ --enable-ldconfig=no - LDFLAGS+="$(pkg-config --libs bluez) -lpthread" \ + LDFLAGS+=" -pthread -lpthread -lbluetooth" \ make } package() { - cd $pkgname-svn_history - make DESTDIR="$pkgdir" install + cd "${pkgname}-svn_history" + make DESTDIR="${pkgdir}" install # wminput README install -Dm644 wminput/README \ - "$pkgdir/usr/share/doc/$pkgname/wminput/README" + "${pkgdir}/usr/share/doc/${pkgname}/wminput/README" } # vim:set ts=2 sw=2 et:
