iglunix/pkgs/kbd/build.sh
2021-04-18 12:17:59 +01:00

32 lines
725 B
Bash

pkgname=kbd
pkgver=2.4.0
fetch() {
curl "https://mirrors.edge.kernel.org/pub/linux/utils/kbd/kbd-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz
curl "https://raw.githubusercontent.com/workman-layout/Workman/master/linux_console/workman.iso15.kmap" -o workman.map
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--build=x86_64-unknown-linux-musl \
--host=x86_64-unknown-linux-musl \
--disable-tests \
--sysconfdir=/etc
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
install -d $pkgdir/usr/share/keymaps/i386/workman/
install -Dm 644 ../workman.map $pkgdir/usr/share/keymaps/i386/workman/
}
license() {
cd $pkgname-$pkgver
cat COPYING
}