iglunix/pkgs/kbd/build.sh

33 lines
725 B
Bash
Raw Normal View History

2021-02-14 21:28:50 +00:00
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
2021-04-18 11:17:59 +00:00
curl "https://raw.githubusercontent.com/workman-layout/Workman/master/linux_console/workman.iso15.kmap" -o workman.map
2021-02-14 21:28:50 +00:00
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--build=x86_64-unknown-linux-musl \
2021-04-18 11:17:59 +00:00
--host=x86_64-unknown-linux-musl \
--disable-tests \
--sysconfdir=/etc
2021-02-14 21:28:50 +00:00
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
2021-04-18 11:17:59 +00:00
install -d $pkgdir/usr/share/keymaps/i386/workman/
install -Dm 644 ../workman.map $pkgdir/usr/share/keymaps/i386/workman/
2021-02-14 21:28:50 +00:00
}
license() {
cd $pkgname-$pkgver
cat COPYING
}