mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 03:51:30 +02:00
main/kbd: move keymaps to /lib/kbd
This commit is contained in:
parent
1bacaa5e99
commit
93cbd0a2fc
@ -2,7 +2,7 @@
|
||||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||
pkgname=kbd
|
||||
pkgver=2.0.3
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Tools for configuring the console (keyboard, virtual terminals, etc.)"
|
||||
url="http://ftp.altlinux.org/pub/people/legion/kbd"
|
||||
arch="all"
|
||||
@ -42,6 +42,7 @@ prepare() {
|
||||
mv qwerty/cz.map qwerty/cz-qwerty.map
|
||||
}
|
||||
|
||||
_datadir=/lib/kbd
|
||||
build() {
|
||||
cd "$_builddir"
|
||||
./configure \
|
||||
@ -49,7 +50,7 @@ build() {
|
||||
--host=$CHOST \
|
||||
--disable-nls \
|
||||
--prefix=/usr \
|
||||
--datadir=/usr/share \
|
||||
--datadir=$_datadir \
|
||||
--htmldir=/usr/share/html/$pkgname \
|
||||
|| return 1
|
||||
make || return 1
|
||||
@ -60,14 +61,14 @@ package() {
|
||||
make DESTDIR="$pkgdir" install || return 1
|
||||
|
||||
# ro_win.map.gz is useless
|
||||
rm -f "$pkgdir"/usr/share/keymaps/i386/qwerty/ro_win.map.gz
|
||||
rm -f "$pkgdir"${_datadir}/keymaps/i386/qwerty/ro_win.map.gz
|
||||
|
||||
# Create additional name for Serbian latin keyboard
|
||||
ln -s sr-cy.map.gz "$pkgdir"/usr/share/keymaps/i386/qwerty/sr-latin.map.gz
|
||||
ln -s sr-cy.map.gz "$pkgdir"$_datadir/keymaps/i386/qwerty/sr-latin.map.gz
|
||||
|
||||
# The rhpl keyboard layout table is indexed by kbd layout names,
|
||||
# so we need a Korean keyboard
|
||||
ln -s us.map.gz "$pkgdir"/usr/share/keymaps/i386/qwerty/ko.map.gz
|
||||
ln -s us.map.gz "$pkgdir"${_datadir}/keymaps/i386/qwerty/ko.map.gz
|
||||
|
||||
# Install html documentation
|
||||
mkdir -p "$pkgdir"/usr/share/html/$pkgname
|
||||
@ -98,9 +99,10 @@ misc() {
|
||||
arch="noarch"
|
||||
depends=
|
||||
|
||||
mkdir -p "$subpkgdir"/usr/share/
|
||||
mkdir -p "$subpkgdir"$_datadir
|
||||
for dir in consolefonts consoletrans keymaps unimaps; do
|
||||
mv "$pkgdir"/usr/share/${dir} "$subpkgdir"/usr/share/ || return 1
|
||||
mv "$pkgdir"$_datadir/${dir} "$subpkgdir"/$_datadir/ \
|
||||
|| return 1
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user