archlinux-pkgbuilds/ledmon/PKGBUILD

30 lines
609 B
Bash
Raw Permalink Normal View History

2011-01-26 15:07:04 +01:00
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
pkgname=ledmon
pkgver=r6.d4b6a09
2011-01-26 15:07:04 +01:00
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')
source=('ledmon::git+https://github.com/jgoerzen/ledmon.git')
md5sums=('SKIP')
2011-01-26 15:07:04 +01:00
pkgver() {
cd "$srcdir"/ledmon
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
2011-01-26 15:07:04 +01:00
build() {
cd "$srcdir"/ledmon
2011-01-26 15:07:04 +01:00
make
}
package() {
cd "$srcdir"/ledmon
2011-01-26 15:07:04 +01:00
install -d "$pkgdir/usr/bin/"
cp ledmon "$pkgdir/usr/bin/"
}