From bcfc5b823cd310ce8d2b0319f20417612d2a0f1c Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Thu, 26 Jan 2012 01:41:13 +0100 Subject: [PATCH 01/11] New PKGBUILD: libcec-git --- .SRCINFO | 16 ++++++++++++++++ PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..4efab73 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = libcec-git + pkgdesc = Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter + pkgver = 20120126 + pkgrel = 1 + url = https://github.com/Pulse-Eight/libcec + arch = i686 + arch = x86_64 + license = GPL + makedepends = git + depends = udev>=151 + provides = libcec + conflicts = libcec + options = !libtool + +pkgname = libcec-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..9be4083 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Cedric Girard + +pkgname=libcec-git +pkgver=20120126 +pkgrel=1 +pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter" +arch=('i686' 'x86_64') +url="https://github.com/Pulse-Eight/libcec" +license=('GPL') +makedepends=('git') +depends=('udev>=151') +provides=('libcec') +conflicts=('libcec') +options=('!libtool') + +_gitroot="https://github.com/Pulse-Eight/libcec.git" +_gitname="libcec" + +build() { + cd "$srcdir" + msg "Connecting to GIT server...." + + if [[ -d "$_gitname" ]]; then + cd "$_gitname" && git pull origin + msg "The local files are updated." + else + git clone "$_gitroot" "$_gitname" + fi + + msg "GIT checkout done or server timeout" + msg "Starting build..." + + rm -rf "$srcdir/$_gitname-build" + git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" + cd "$srcdir/$_gitname-build" + + autoreconf -vif + ./configure --prefix=/usr + make +} + +package() { + cd "$srcdir/$_gitname-build" + make DESTDIR="$pkgdir/" install +} + +# vim:set ts=2 sw=2 et: From 71b249cbfe666d3ee3c86a2570df0537dd6743b3 Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Tue, 15 May 2012 13:25:28 +0200 Subject: [PATCH 02/11] libcec-git: updated with new dependency --- .SRCINFO | 3 ++- PKGBUILD | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 4efab73..30263c6 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = libcec-git pkgdesc = Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter - pkgver = 20120126 + pkgver = 20120515 pkgrel = 1 url = https://github.com/Pulse-Eight/libcec arch = i686 @@ -8,6 +8,7 @@ pkgbase = libcec-git license = GPL makedepends = git depends = udev>=151 + depends = lockdev provides = libcec conflicts = libcec options = !libtool diff --git a/PKGBUILD b/PKGBUILD index 9be4083..4813728 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,14 +1,14 @@ # Maintainer: Cedric Girard pkgname=libcec-git -pkgver=20120126 +pkgver=20120515 pkgrel=1 pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter" arch=('i686' 'x86_64') url="https://github.com/Pulse-Eight/libcec" license=('GPL') makedepends=('git') -depends=('udev>=151') +depends=('udev>=151' 'lockdev') provides=('libcec') conflicts=('libcec') options=('!libtool') From 85a1a01a3f10f537b0e86cef330887cb15aa9a77 Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Fri, 4 Jan 2013 11:20:05 +0100 Subject: [PATCH 03/11] updated libcec-git PKGBUILD with fPIC correction --- .SRCINFO | 4 ++-- PKGBUILD | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 30263c6..8df0ef0 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = libcec-git pkgdesc = Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter - pkgver = 20120515 + pkgver = 20130104 pkgrel = 1 url = https://github.com/Pulse-Eight/libcec arch = i686 @@ -8,7 +8,7 @@ pkgbase = libcec-git license = GPL makedepends = git depends = udev>=151 - depends = lockdev + depends = lockdev-fpic provides = libcec conflicts = libcec options = !libtool diff --git a/PKGBUILD b/PKGBUILD index 4813728..c261523 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,14 +1,14 @@ # Maintainer: Cedric Girard pkgname=libcec-git -pkgver=20120515 +pkgver=20130104 pkgrel=1 pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter" arch=('i686' 'x86_64') url="https://github.com/Pulse-Eight/libcec" license=('GPL') makedepends=('git') -depends=('udev>=151' 'lockdev') +depends=('udev>=151' 'lockdev-fpic') provides=('libcec') conflicts=('libcec') options=('!libtool') @@ -34,6 +34,7 @@ build() { git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" cd "$srcdir/$_gitname-build" + sed 's/^LIBS_LIBCEC="$LIBS".*/LIBS_LIBCEC="$LIBS -fPIC"/' -i configure.ac autoreconf -vif ./configure --prefix=/usr make From 8539ce7b47e564e58f961a5bd4779ab1bbefd37e Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Mon, 25 Mar 2013 13:51:13 +0100 Subject: [PATCH 04/11] libcec-git updated to switch back to official lockdev pkg --- .SRCINFO | 4 ++-- PKGBUILD | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 8df0ef0..56f3003 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = libcec-git pkgdesc = Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter - pkgver = 20130104 + pkgver = 20130325 pkgrel = 1 url = https://github.com/Pulse-Eight/libcec arch = i686 @@ -8,7 +8,7 @@ pkgbase = libcec-git license = GPL makedepends = git depends = udev>=151 - depends = lockdev-fpic + depends = lockdev provides = libcec conflicts = libcec options = !libtool diff --git a/PKGBUILD b/PKGBUILD index c261523..4aa2920 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,14 +1,14 @@ # Maintainer: Cedric Girard pkgname=libcec-git -pkgver=20130104 +pkgver=20130325 pkgrel=1 pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter" arch=('i686' 'x86_64') url="https://github.com/Pulse-Eight/libcec" license=('GPL') makedepends=('git') -depends=('udev>=151' 'lockdev-fpic') +depends=('udev>=151' 'lockdev') provides=('libcec') conflicts=('libcec') options=('!libtool') From ed6bc39bc29cd6046b7bb7b16a74f33ad7478d30 Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Fri, 5 Apr 2013 16:35:25 +0200 Subject: [PATCH 05/11] libcec-git PKGBUILD migrated to new VCS style --- .SRCINFO | 5 ++++- PKGBUILD | 31 ++++++++++--------------------- 2 files changed, 14 insertions(+), 22 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 56f3003..94d1835 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,8 @@ pkgbase = libcec-git pkgdesc = Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter - pkgver = 20130325 + pkgver = 2.0.4.77.g3ff78be pkgrel = 1 + epoch = 1 url = https://github.com/Pulse-Eight/libcec arch = i686 arch = x86_64 @@ -12,6 +13,8 @@ pkgbase = libcec-git provides = libcec conflicts = libcec options = !libtool + source = libcec::git+https://github.com/Pulse-Eight/libcec.git + md5sums = SKIP pkgname = libcec-git diff --git a/PKGBUILD b/PKGBUILD index 4aa2920..3f3f341 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,7 +1,8 @@ # Maintainer: Cedric Girard pkgname=libcec-git -pkgver=20130325 +epoch=1 +pkgver=2.0.4.77.g3ff78be pkgrel=1 pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter" arch=('i686' 'x86_64') @@ -12,36 +13,24 @@ depends=('udev>=151' 'lockdev') provides=('libcec') conflicts=('libcec') options=('!libtool') +source=('libcec::git+https://github.com/Pulse-Eight/libcec.git') +md5sums=('SKIP') -_gitroot="https://github.com/Pulse-Eight/libcec.git" -_gitname="libcec" +pkgver() { + cd "$srcdir"/libcec + git describe --tags | sed 's|libcec-||;s|-|.|g' +} build() { - cd "$srcdir" - msg "Connecting to GIT server...." + cd "$srcdir"/libcec - if [[ -d "$_gitname" ]]; then - cd "$_gitname" && git pull origin - msg "The local files are updated." - else - git clone "$_gitroot" "$_gitname" - fi - - msg "GIT checkout done or server timeout" - msg "Starting build..." - - rm -rf "$srcdir/$_gitname-build" - git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" - cd "$srcdir/$_gitname-build" - - sed 's/^LIBS_LIBCEC="$LIBS".*/LIBS_LIBCEC="$LIBS -fPIC"/' -i configure.ac autoreconf -vif ./configure --prefix=/usr make } package() { - cd "$srcdir/$_gitname-build" + cd "$srcdir"/libcec make DESTDIR="$pkgdir/" install } From 7175a1640128a27fe3e415f2cd3f78fe471a8fbf Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Fri, 20 Jun 2014 14:51:12 +0200 Subject: [PATCH 06/11] libcec-git rebuild --- .SRCINFO | 2 +- PKGBUILD | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 94d1835..8df539e 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = libcec-git pkgdesc = Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter - pkgver = 2.0.4.77.g3ff78be + pkgver = 2.1.4.4.ga560d24 pkgrel = 1 epoch = 1 url = https://github.com/Pulse-Eight/libcec diff --git a/PKGBUILD b/PKGBUILD index 3f3f341..96dd914 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,7 +2,7 @@ pkgname=libcec-git epoch=1 -pkgver=2.0.4.77.g3ff78be +pkgver=2.1.4.4.ga560d24 pkgrel=1 pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter" arch=('i686' 'x86_64') From e04563f2fc245134b56f8ee994a57cd68a15e60a Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Sun, 26 Apr 2015 13:37:59 +0200 Subject: [PATCH 07/11] libcec-git: switched to cmake --- .SRCINFO | 5 ++++- PKGBUILD | 13 +++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 8df539e..9460170 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = libcec-git pkgdesc = Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter - pkgver = 2.1.4.4.ga560d24 + pkgver = 2.1.4.149.gd2f8cf7 pkgrel = 1 epoch = 1 url = https://github.com/Pulse-Eight/libcec @@ -8,8 +8,11 @@ pkgbase = libcec-git arch = x86_64 license = GPL makedepends = git + makedepends = libplatform depends = udev>=151 depends = lockdev + depends = libplatform + depends = libxrandr provides = libcec conflicts = libcec options = !libtool diff --git a/PKGBUILD b/PKGBUILD index 96dd914..305f482 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,14 +2,14 @@ pkgname=libcec-git epoch=1 -pkgver=2.1.4.4.ga560d24 +pkgver=2.1.4.149.gd2f8cf7 pkgrel=1 pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter" arch=('i686' 'x86_64') url="https://github.com/Pulse-Eight/libcec" license=('GPL') -makedepends=('git') -depends=('udev>=151' 'lockdev') +makedepends=('git' 'libplatform') +depends=('udev>=151' 'lockdev' 'libplatform' 'libxrandr') provides=('libcec') conflicts=('libcec') options=('!libtool') @@ -23,9 +23,10 @@ pkgver() { build() { cd "$srcdir"/libcec - - autoreconf -vif - ./configure --prefix=/usr + cmake . \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib \ + -DCMAKE_INSTALL_LIBDIR_NOARCH=/usr/lib make } From 61ad30c949bbaac4ef5994d97529227cc3e383cc Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Mon, 18 May 2015 13:54:07 +0200 Subject: [PATCH 08/11] tag libcec and libplatform as release build to get correct behaviour --- PKGBUILD | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PKGBUILD b/PKGBUILD index 305f482..e2ccb83 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -24,6 +24,8 @@ pkgver() { build() { cd "$srcdir"/libcec cmake . \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_SHARED_LIBS=1 \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=/usr/lib \ -DCMAKE_INSTALL_LIBDIR_NOARCH=/usr/lib From 3d960915141bd4163ebf331f1e3f981fff6b5209 Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Mon, 15 Jun 2015 13:01:01 +0200 Subject: [PATCH 09/11] libcec updated to 3.0.0 and python dep added --- .SRCINFO | 2 +- PKGBUILD | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 9460170..ccba3be 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = libcec-git pkgdesc = Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter - pkgver = 2.1.4.149.gd2f8cf7 + pkgver = 2.1.4.155.g1855591 pkgrel = 1 epoch = 1 url = https://github.com/Pulse-Eight/libcec diff --git a/PKGBUILD b/PKGBUILD index e2ccb83..8805ad0 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,14 +2,14 @@ pkgname=libcec-git epoch=1 -pkgver=2.1.4.149.gd2f8cf7 +pkgver=2.1.4.155.g1855591 pkgrel=1 pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter" arch=('i686' 'x86_64') url="https://github.com/Pulse-Eight/libcec" license=('GPL') makedepends=('git' 'libplatform') -depends=('udev>=151' 'lockdev' 'libplatform' 'libxrandr') +depends=('udev>=151' 'lockdev' 'libplatform' 'libxrandr' 'python') provides=('libcec') conflicts=('libcec') options=('!libtool') From 2019782e9485946819911beed8bc09555e9ab97e Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Tue, 6 Sep 2016 13:23:15 +0200 Subject: [PATCH 10/11] libplatform is now p8-platform --- .SRCINFO | 7 ++++--- PKGBUILD | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index ccba3be..eda79fc 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = libcec-git pkgdesc = Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter - pkgver = 2.1.4.155.g1855591 + pkgver = 3.1.0.25.g62b8520 pkgrel = 1 epoch = 1 url = https://github.com/Pulse-Eight/libcec @@ -8,11 +8,12 @@ pkgbase = libcec-git arch = x86_64 license = GPL makedepends = git - makedepends = libplatform + makedepends = p8-platform>=2.0 depends = udev>=151 depends = lockdev - depends = libplatform + depends = p8-platform>=2.0 depends = libxrandr + depends = python provides = libcec conflicts = libcec options = !libtool diff --git a/PKGBUILD b/PKGBUILD index 8805ad0..87b9ce2 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,14 +2,14 @@ pkgname=libcec-git epoch=1 -pkgver=2.1.4.155.g1855591 +pkgver=3.1.0.25.g62b8520 pkgrel=1 pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter" arch=('i686' 'x86_64') url="https://github.com/Pulse-Eight/libcec" license=('GPL') -makedepends=('git' 'libplatform') -depends=('udev>=151' 'lockdev' 'libplatform' 'libxrandr' 'python') +makedepends=('git' 'p8-platform>=2.0') +depends=('udev>=151' 'lockdev' 'p8-platform>=2.0' 'libxrandr' 'python') provides=('libcec') conflicts=('libcec') options=('!libtool') From 9981270eb60521d5aa6d15a65b4cebe1fe1e0a16 Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Thu, 1 Dec 2016 18:05:46 +0100 Subject: [PATCH 11/11] correct pkgver function --- .SRCINFO | 2 +- PKGBUILD | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index eda79fc..b3d5513 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = libcec-git pkgdesc = Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter - pkgver = 3.1.0.25.g62b8520 + pkgver = 4.0.0.3.r0.g209884d pkgrel = 1 epoch = 1 url = https://github.com/Pulse-Eight/libcec diff --git a/PKGBUILD b/PKGBUILD index 87b9ce2..1c1a892 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,7 +2,7 @@ pkgname=libcec-git epoch=1 -pkgver=3.1.0.25.g62b8520 +pkgver=4.0.0.3.r0.g209884d pkgrel=1 pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter" arch=('i686' 'x86_64') @@ -18,7 +18,7 @@ md5sums=('SKIP') pkgver() { cd "$srcdir"/libcec - git describe --tags | sed 's|libcec-||;s|-|.|g' + git describe --long --tags | sed 's!^libcec-!!;s!\([^-]*-g\)!r\1!;s!-!.!g' } build() {