You are not logged in.
Guess the topic says it all.
http://wmalms.tripod.com/#XHKEYS
http://freshmeat.net/projects/xhekys/
orjanp...
Ørjan Pettersen
Offline
My good old ms natural elite keyboard died unexpectedly yesterday :?. I have to work with my spare keyboard now (which only good feature is a nice blue backlight under the keys :-)). So I guess I'll buy new keyboard soon (full of extra keys). Maybe I'll use them using this program...
Ok. Now about your request. Here is the pkgbuild. It compiles fine but I can't check right now if everything works. Please, post comments if you find something wrong.
xhkeys PKGBUILD
pkgname=xhkeys
pkgver=2.2.1
pkgrel=1
pkgdesc="Allows to use and configure keyboard extra keys"
url="http://wmalms.tripod.com/#XHKEYS"
depends=('x-server')
source=(http://www.geocities.com/wmalms/$pkgname-$pkgver.tar.gz)
md5sums=('412f498f833d5e07673261afa3d903bf')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make prefix=$startdir/pkg/usr install
}
I had to use mirror site in the source url because the primary site has problems. I can't download a complete tar.gz file. The one from mirror works ok though.
Offline
I did the same thing as you, more or less. The problem is that it needs a configuration file. This is where I ran into trouble, I can't figure out how to write a config file that will work universally (in fact I doubt it's possble). Once you install the pkgbuild xhkeys will not run into you make a config file by running xfkconf. Perhaps you should add that into the pkgdata so that once you install it you are told to run 'xhkconf'?
Offline
You are right. Ok this is an improved pkgbuild and install file:
xhkeys PKGBUILD
pkgname=xhkeys
pkgver=2.2.1
pkgrel=1
pkgdesc="Allows to use and configure keyboard extra keys"
url="http://wmalms.tripod.com/#XHKEYS"
depends=('x-server')
install=xhkeys.install
source=(http://www.geocities.com/wmalms/$pkgname-$pkgver.tar.gz)
md5sums=('412f498f833d5e07673261afa3d903bf')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make prefix=$startdir/pkg/usr install
install -D -m644 $startdir/src/$pkgname-$pkgver/XHkeys.sample
$startdir/pkg/usr/share/xhkeys/XHkeys.sample
}
xhkeys.install
# arg 1: the new package version
post_install() {
echo "----------------------------------"
echo "You can find a sample config file in /usr/share/xhkeys"
echo ""
echo "Read xhkeys online manual to learn more about configuration:"
echo "http://wmalms.tripod.com/xhkeys_manual.html"
echo "----------------------------------"
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
/bin/true
}
# arg 1: the old package version
pre_remove() {
/bin/true
}
# arg 1: the old package version
post_remove() {
/bin/true
}
op=$1
shift
$op $*
I added sample config from the source package and a link to manual. I hope that's enough to start. As I mentioned ealier I'll have to buy new multimedia keyboard first to check it :-) If you find any usefull config options post it here, please :-)
Offline