libcec-git PKGBUILD migrated to new VCS style
This commit is contained in:
parent
8539ce7b47
commit
ed6bc39bc2
2 changed files with 14 additions and 22 deletions
5
.SRCINFO
5
.SRCINFO
|
@ -1,7 +1,8 @@
|
||||||
pkgbase = libcec-git
|
pkgbase = libcec-git
|
||||||
pkgdesc = Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter
|
pkgdesc = Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter
|
||||||
pkgver = 20130325
|
pkgver = 2.0.4.77.g3ff78be
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
|
epoch = 1
|
||||||
url = https://github.com/Pulse-Eight/libcec
|
url = https://github.com/Pulse-Eight/libcec
|
||||||
arch = i686
|
arch = i686
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
|
@ -12,6 +13,8 @@ pkgbase = libcec-git
|
||||||
provides = libcec
|
provides = libcec
|
||||||
conflicts = libcec
|
conflicts = libcec
|
||||||
options = !libtool
|
options = !libtool
|
||||||
|
source = libcec::git+https://github.com/Pulse-Eight/libcec.git
|
||||||
|
md5sums = SKIP
|
||||||
|
|
||||||
pkgname = libcec-git
|
pkgname = libcec-git
|
||||||
|
|
||||||
|
|
31
PKGBUILD
31
PKGBUILD
|
@ -1,7 +1,8 @@
|
||||||
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
|
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
|
||||||
|
|
||||||
pkgname=libcec-git
|
pkgname=libcec-git
|
||||||
pkgver=20130325
|
epoch=1
|
||||||
|
pkgver=2.0.4.77.g3ff78be
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter"
|
pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter"
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
|
@ -12,36 +13,24 @@ depends=('udev>=151' 'lockdev')
|
||||||
provides=('libcec')
|
provides=('libcec')
|
||||||
conflicts=('libcec')
|
conflicts=('libcec')
|
||||||
options=('!libtool')
|
options=('!libtool')
|
||||||
|
source=('libcec::git+https://github.com/Pulse-Eight/libcec.git')
|
||||||
|
md5sums=('SKIP')
|
||||||
|
|
||||||
_gitroot="https://github.com/Pulse-Eight/libcec.git"
|
pkgver() {
|
||||||
_gitname="libcec"
|
cd "$srcdir"/libcec
|
||||||
|
git describe --tags | sed 's|libcec-||;s|-|.|g'
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir"
|
cd "$srcdir"/libcec
|
||||||
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"
|
|
||||||
|
|
||||||
sed 's/^LIBS_LIBCEC="$LIBS".*/LIBS_LIBCEC="$LIBS -fPIC"/' -i configure.ac
|
|
||||||
autoreconf -vif
|
autoreconf -vif
|
||||||
./configure --prefix=/usr
|
./configure --prefix=/usr
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$srcdir/$_gitname-build"
|
cd "$srcdir"/libcec
|
||||||
make DESTDIR="$pkgdir/" install
|
make DESTDIR="$pkgdir/" install
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue