update ledmon PKGBUILD to "new" git standards
This commit is contained in:
parent
1ab1e0cbd1
commit
a9d90ba8dc
2 changed files with 13 additions and 22 deletions
4
.SRCINFO
4
.SRCINFO
|
@ -1,6 +1,6 @@
|
||||||
pkgbase = ledmon
|
pkgbase = ledmon
|
||||||
pkgdesc = Monitor your keyboard LED [C] (unmaintained)
|
pkgdesc = Monitor your keyboard LED [C] (unmaintained)
|
||||||
pkgver = 20110126
|
pkgver = r6.d4b6a09
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
url = http://github.com/jgoerzen/ledmon
|
url = http://github.com/jgoerzen/ledmon
|
||||||
arch = i686
|
arch = i686
|
||||||
|
@ -8,6 +8,8 @@ pkgbase = ledmon
|
||||||
license = GPL
|
license = GPL
|
||||||
makedepends = git
|
makedepends = git
|
||||||
depends = libx11
|
depends = libx11
|
||||||
|
source = ledmon::git+https://github.com/jgoerzen/ledmon.git
|
||||||
|
md5sums = SKIP
|
||||||
|
|
||||||
pkgname = ledmon
|
pkgname = ledmon
|
||||||
|
|
||||||
|
|
31
PKGBUILD
31
PKGBUILD
|
@ -1,6 +1,6 @@
|
||||||
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
|
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
|
||||||
pkgname=ledmon
|
pkgname=ledmon
|
||||||
pkgver=20110126
|
pkgver=r6.d4b6a09
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Monitor your keyboard LED [C] (unmaintained)"
|
pkgdesc="Monitor your keyboard LED [C] (unmaintained)"
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
|
@ -9,32 +9,21 @@ license=('GPL')
|
||||||
depends=('libx11')
|
depends=('libx11')
|
||||||
makedepends=('git')
|
makedepends=('git')
|
||||||
|
|
||||||
_gitroot="https://github.com/jgoerzen/ledmon.git"
|
source=('ledmon::git+https://github.com/jgoerzen/ledmon.git')
|
||||||
_gitname="ledmon"
|
md5sums=('SKIP')
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
cd "$srcdir"/ledmon
|
||||||
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir"
|
cd "$srcdir"/ledmon
|
||||||
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 make..."
|
|
||||||
|
|
||||||
rm -rf "$srcdir/$_gitname-build"
|
|
||||||
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
|
|
||||||
cd "$srcdir/$_gitname-build"
|
|
||||||
|
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$srcdir/$_gitname-build"
|
cd "$srcdir"/ledmon
|
||||||
install -d "$pkgdir/usr/bin/"
|
install -d "$pkgdir/usr/bin/"
|
||||||
cp ledmon "$pkgdir/usr/bin/"
|
cp ledmon "$pkgdir/usr/bin/"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue