You are not logged in.

#1 2004-09-26 19:08:15

orjanp
Member
From: Tromsoe, Norway
Registered: 2004-07-03
Posts: 347

Request: xhkeys


Ørjan Pettersen

Offline

#2 2004-09-26 22:37:01

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: Request: xhkeys

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

#3 2004-09-26 22:46:43

LavaPunk
Member
Registered: 2004-03-05
Posts: 129

Re: Request: xhkeys

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

#4 2004-09-26 23:13:11

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: Request: xhkeys

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

Board footer

Powered by FluxBB