From 262d3d8d42af1fa38a3448c419edc9a916010be1 Mon Sep 17 00:00:00 2001 From: aheirman <48590738+aheirman@users.noreply.github.com> Date: Sun, 14 Feb 2021 21:28:50 +0000 Subject: [PATCH] Add kbd --- pkgs/kbd/build.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pkgs/kbd/build.sh diff --git a/pkgs/kbd/build.sh b/pkgs/kbd/build.sh new file mode 100644 index 0000000..7c06c6e --- /dev/null +++ b/pkgs/kbd/build.sh @@ -0,0 +1,29 @@ +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 + 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 + + make +} + +package() { + cd $pkgname-$pkgver + make install DESTDIR=$pkgdir +} + +license() { + cd $pkgname-$pkgver + cat COPYING +}