You are not logged in.
Pages: 1
Hi, I've imported the ubuntu canada multi keymap for the console. May be other people whant tis keymap to, so I just want to know: how I can make a AUR package to use an installation script that will download the keymap and install it. I can make a shell script, but it's the first time that I want to post something on AUR.
Thanks in advance!
Offline
Start with reading these:
PKGBUILD(5)
/usr/share/pacman/*
makepkg(8)
http://wiki.archlinux.org/index.php/Arc … _Standards
http://wiki.archlinux.org/index.php/AUR
Edit: Your package should not download and copy the keymap in at install time using the .install script. It should download and package the keymap at build time instead.
I assume that ubuntu actually have some sane license on the keymap.
Last edited by Mr.Elendig (2010-04-26 19:08:40)
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
I'll check for the license then read the doc you gave me. I really think is an open one. I hope!
Last edited by Spationaute (2010-04-26 19:27:52)
Offline
Ok, as I read, I think I wouldn't need to script a download. I'll only put the keymap in the file as source. Or simply put it in the script, (scince is only a text gzipped).
Offline
...
source=('http://url/to/wherever/the/keypap/is/somekeymap.tar.gz')
...
build() {
cd ${srcdir}/whatever
...
install --flags --as --needed somekeymap.gz ${pkgdir}/usr/share/kbd/keymaps/i386/qwerty/somekeymap.gz
}
Something like that. Adapt and fill in the missing stuff as needed
Last edited by Mr.Elendig (2010-04-26 20:03:49)
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Yes, I found that
It's what I have now:
pkgname=ca_multi
pkgver=1.0
pkgrel=1
pkgdesc="The canada multi keymap for the console"
arch=('i686' 'i386')
url="http://stellaire.org/"
license=('GPL')
groups=(system)
depends=()
makedepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
source=('http://stellaire.org/arch/ca_multi.map.gz')
noextract=(ca_multi.map.gz)
md5sums=('d6608897bb40be38795adce7dadafc77')
build() {
cd $srcdir
cp ./ca_multi.map.gz /usr/share/kbd/keymaps/i386/qwerty
}
Offline
http://aur.archlinux.org/packages.php?ID=36754
I think I must add something like a sudo to make it work...
Last edited by Spationaute (2010-04-26 20:19:18)
Offline
Set and working!! Thank you! M.Elendig
pkgname=ca_multi
pkgver=1.0
pkgrel=1
pkgdesc="The canada multi keymap for the console"
arch=('i686' 'i386')
url="http://stellaire.org/"
license=('GPL')
groups=(system)
depends=()
makedepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
source=('http://stellaire.org/arch/ca_multi.map.gz')
noextract=(ca_multi.map.gz)
md5sums=('d6608897bb40be38795adce7dadafc77')
build() {
cd $srcdir
sudo install -v ./ca_multi.map.gz -t /usr/share/kbd/keymaps/i386/qwerty
}
Last edited by Spationaute (2010-04-26 20:31:21)
Offline
By the way, is it possible to add that keymap in the installation cd of aur? It's used by the francophone from Quebec (in Canada) as keyboard setting. Here, no one use canada-fr as default keymap .
Offline
No no no no!
You PKGBUILD is very wrong
Dont copy to /usr but to ${pkgdir}/usr without sudo! (this kill all the point you doing a PKGBUILD)
Read the posted doc.
EDIT.
From the pkgbuild from aur another thing, remove the echo "bla bla" and move it to a .install file. Quoted from wiki (from the link aready posted, you already read it, but I think you forget)
All important messages should be echoed during install using an .install file. For example, if a package needs extra setup to work, directions should be included.
Last edited by kazuo (2010-04-26 21:16:24)
Offline
Oups, sorry, its corrected kazuo. I use a .install now. but the ${pkgdir} trick dont work.
pkgname=ca_multi
pkgver=1.0
pkgrel=1
pkgdesc="The canada multi keymap for the console"
arch=('i686' 'i386')
url="http://stellaire.org/"
license=('GPL')
groups=(system)
depends=()
makedepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
source=('http://stellaire.org/arch/ca_multi.map.gz')
noextract=(ca_multi.map.gz)
md5sums=('d6608897bb40be38795adce7dadafc77')
build() {
cd $srcdir
install -v ./ca_multi.map.gz -t ${pkgdir}/usr/share/kbd/keymaps/i386/qwerty
}
Last edited by Spationaute (2010-04-26 21:32:30)
Offline
the problem is with you install line, you need to create the dir before, try install -D for example
install -D -m644 ca_multi.map.gz ${pkgdir}/usr/share/kbd/keymaps/i386/qwerty
And remove the i386, Arch dont support i386, (you can use 'any', keymaps are independent of arch)
Last edited by kazuo (2010-04-26 21:46:15)
Offline
Last one, and I think the good one:
pkgname=ca_multi
pkgver=1.0
pkgrel=1
pkgdesc="The canada multi keymap for the console"
arch=('any')
url="http://stellaire.org/"
license=('GPL')
groups=(system)
depends=()
makedepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
source=('http://stellaire.org/arch/ca_multi.map.gz')
noextract=(ca_multi.map.gz)
md5sums=('d6608897bb40be38795adce7dadafc77')
build() {
cd $srcdir
mkdir -p ${pkgdir}/usr/share/kbd/keymaps/i386/qwerty/
install -v ca_multi.map.gz ${pkgdir}/usr/share/kbd/keymaps/i386/qwerty/ || return 1
}
Thank for everybody help!
EDIT: Oups, I've posted in same time. Yes I've guessed that one. I've understood that AUR use a fakeroot environment and install tings after as you pathed it in the pkgdir. Thanks for the help! That was me first time.
Last edited by Spationaute (2010-04-26 21:51:42)
Offline
Did this is better? No download for my site!
pkgname=ca_multi
pkgver=1.0
pkgrel=1
pkgdesc="The canada multi keymap for the console"
arch=('any')
url="http://stellaire.org/"
license=('GPL')
groups=(system)
depends=()
makedepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
source=('http://stellaire.org/arch/ca_multi.map.gz')
noextract=(ca_multi.map.gz)
md5sums=('d6608897bb40be38795adce7dadafc77')
build() {
cd $srcdir
mkdir -p ${pkgdir}/usr/share/kbd/keymaps/i386/qwerty/
echo 'keymaps 0-127
keycode 1 = Escape ... to the end' >ca_multi.map
gzip ca_multi.map
install -v ca_multi.map.gz ${pkgdir}/usr/share/kbd/keymaps/i386/qwerty/ || return 1
}
Offline
Last edited by Montague (2015-07-28 02:28:20)
Offline
Thanks Montague. I've added the x86_64 as compatible architecture.
The Wiki is correct. You do have keymap in "/usr/share/kbd/keymaps/i386". Juste check my script it's installing it in! Making me think that if I want to install it on 64bits machine I must use uname -m...
Last edited by Spationaute (2010-07-15 03:44:49)
Offline
Last edited by Montague (2015-07-28 02:28:59)
Offline
Pages: 1