From e8a1756b32c6f955a7070c66282f6a7d225ecf19 Mon Sep 17 00:00:00 2001 From: vrabac Date: Thu, 17 Dec 2015 23:40:27 +0100 Subject: [PATCH] alarm/libcec-rpi: fix compilation in non-git paths --- alarm/libcec-rpi/PKGBUILD | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/alarm/libcec-rpi/PKGBUILD b/alarm/libcec-rpi/PKGBUILD index 45d363029..190afdd28 100644 --- a/alarm/libcec-rpi/PKGBUILD +++ b/alarm/libcec-rpi/PKGBUILD @@ -11,7 +11,7 @@ buildarch=20 pkgname=libcec-rpi _pkgname=libcec pkgver=3.0.1 -pkgrel=2 +pkgrel=3 pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter (Raspberry Pi)" arch=('i686' 'x86_64') url="http://libcec.pulse-eight.com/" @@ -20,8 +20,15 @@ makedepends=('cmake') depends=('udev' 'lockdev' 'libplatform' 'libxrandr' 'raspberrypi-firmware') provides=('libcec') conflicts=('libcec') -source=("$_pkgname-$pkgver.tar.gz::https://github.com/Pulse-Eight/$_pkgname/archive/$_pkgname-$pkgver.tar.gz") -sha256sums=('7e3670c8949a1964d6e5481f56dfff838857da10bdc60b506f6e9b7f117e253e') +source=("$_pkgname-$pkgver.tar.gz::https://github.com/Pulse-Eight/$_pkgname/archive/$_pkgname-$pkgver.tar.gz" + 'https://github.com/Pulse-Eight/libcec/commit/2f32a9debc1f148b5dfcfc463480f1432bb71725.patch') +sha256sums=('7e3670c8949a1964d6e5481f56dfff838857da10bdc60b506f6e9b7f117e253e' + '83ca3b742831aa2e05297d11e238a0b0d1035a6404f60a6610acc8381d1c17ea') + +prepare() { + cd "$_pkgname-$_pkgname-$pkgver" + patch -Np1 -i "$srcdir/2f32a9debc1f148b5dfcfc463480f1432bb71725.patch" +} build() { cd "$_pkgname-$_pkgname-$pkgver"