ledmon pkg
This commit is contained in:
commit
1ab1e0cbd1
2 changed files with 53 additions and 0 deletions
13
.SRCINFO
Normal file
13
.SRCINFO
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
pkgbase = ledmon
|
||||||
|
pkgdesc = Monitor your keyboard LED [C] (unmaintained)
|
||||||
|
pkgver = 20110126
|
||||||
|
pkgrel = 1
|
||||||
|
url = http://github.com/jgoerzen/ledmon
|
||||||
|
arch = i686
|
||||||
|
arch = x86_64
|
||||||
|
license = GPL
|
||||||
|
makedepends = git
|
||||||
|
depends = libx11
|
||||||
|
|
||||||
|
pkgname = ledmon
|
||||||
|
|
40
PKGBUILD
Normal file
40
PKGBUILD
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
|
||||||
|
pkgname=ledmon
|
||||||
|
pkgver=20110126
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Monitor your keyboard LED [C] (unmaintained)"
|
||||||
|
arch=('i686' 'x86_64')
|
||||||
|
url="http://github.com/jgoerzen/ledmon"
|
||||||
|
license=('GPL')
|
||||||
|
depends=('libx11')
|
||||||
|
makedepends=('git')
|
||||||
|
|
||||||
|
_gitroot="https://github.com/jgoerzen/ledmon.git"
|
||||||
|
_gitname="ledmon"
|
||||||
|
|
||||||
|
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 make..."
|
||||||
|
|
||||||
|
rm -rf "$srcdir/$_gitname-build"
|
||||||
|
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
|
||||||
|
cd "$srcdir/$_gitname-build"
|
||||||
|
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$srcdir/$_gitname-build"
|
||||||
|
install -d "$pkgdir/usr/bin/"
|
||||||
|
cp ledmon "$pkgdir/usr/bin/"
|
||||||
|
}
|
Loading…
Reference in a new issue