From 0a1be73da8d65889fc92a770eff09efc2d2f7ae8 Mon Sep 17 00:00:00 2001 From: Andreas Grapentin Date: Fri, 26 Jan 2018 10:56:48 +0100 Subject: pcr/cwiid: added --- pcr/cwiid/PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++ pcr/cwiid/cwiid.install | 10 ++++++++++ 2 files changed, 63 insertions(+) create mode 100644 pcr/cwiid/PKGBUILD create mode 100644 pcr/cwiid/cwiid.install (limited to 'pcr/cwiid') diff --git a/pcr/cwiid/PKGBUILD b/pcr/cwiid/PKGBUILD new file mode 100644 index 000000000..b49ba13aa --- /dev/null +++ b/pcr/cwiid/PKGBUILD @@ -0,0 +1,53 @@ +# $Id: PKGBUILD 271927 2017-12-02 20:55:03Z dvzrv $ +# Maintainer (AUR): David Runge +# Contributor (AUR): speps +# Contributor (AUR): Ray Rashif +# Contributor (AUR): Wieland Hoffmann +# Contributor (AUR): Birger Moellering +# 2018/01/03: +# 2012/06/05: +# 2012/03/21: + +# parabola changes and rationale: +# no changes. + +pkgname=cwiid +pkgver=0.6.00+svn201 +pkgrel=3 +pkgdesc="Linux Nintendo Wiimote interface" +arch=('x86_64' 'i686' 'armv7h') +url="http://abstrakraft.org/cwiid" +depends=('bluez-libs' 'gtk2' 'python2') +license=('GPL') +install="$pkgname.install" +source=("https://github.com/abstrakraft/cwiid/archive/svn_history.tar.gz") +sha512sums=('25c105c37ae0778b6e47c4a02bfc74380f3b3dcc4cb71a3968a243a7de33c55d8b6d7860d826d1d5a6a197223fdb6022effd27d40394ca7007d997694438739b') + +prepare() { + cd "${pkgname}-svn_history" + # fixing ldconfig use in configure + sed -i '/ldconfig/s/WITH/ENABLE/' configure.ac + autoreconf -fi +} + +build() { + cd "${pkgname}-svn_history" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --with-python=python2 \ + --enable-ldconfig=no + + LDFLAGS+=" -pthread -lpthread -lbluetooth" \ + make +} + +package() { + cd "${pkgname}-svn_history" + make DESTDIR="${pkgdir}" install + + # wminput README + install -Dm644 wminput/README \ + "${pkgdir}/usr/share/doc/${pkgname}/wminput/README" +} + +# vim:set ts=2 sw=2 et: diff --git a/pcr/cwiid/cwiid.install b/pcr/cwiid/cwiid.install new file mode 100644 index 000000000..05e698be7 --- /dev/null +++ b/pcr/cwiid/cwiid.install @@ -0,0 +1,10 @@ +post_install() { + echo "==> In order to use wminput ensure you load the uinput kernel" + echo "==> module and have assigned correct access to /dev/uinput" +} + +post_upgrade() { + post_install +} + +# vim:set ts=2 sw=2 et: -- cgit v1.2.3