diff --git a/srcpkgs/kbd/files/error.h b/srcpkgs/kbd/files/error.h deleted file mode 100644 index 5eb8ed5115..0000000000 --- a/srcpkgs/kbd/files/error.h +++ /dev/null @@ -1,20 +0,0 @@ -#ifndef ERROR_H -#define ERROR_H - -#include -#include -#include - -static inline void error(int status, int errnum, const char *fmt, ...) -{ - va_list ap; - void (*errfunc[2])(int, const char *, va_list) = { &verr, &verrx }; - void (*warnfunc[2])(const char *, va_list) = { &vwarn, &vwarnx }; - fflush(stdout); - va_start(ap, fmt); - if (status != 0) - errfunc[errnum==0](status, fmt, ap); /* does not return */ - warnfunc[errnum==0](fmt, ap); - va_end(ap); -} -#endif diff --git a/srcpkgs/kbd/template b/srcpkgs/kbd/template index 47604e8ad5..e88ebf5d7f 100644 --- a/srcpkgs/kbd/template +++ b/srcpkgs/kbd/template @@ -14,10 +14,10 @@ homepage="http://www.kbd-project.org/" distfiles="${KERNEL_SITE}/utils/${pkgname}/${pkgname}-${version}.tar.xz" checksum=685056143cb8effd0a1d44b5c391eb50d80dcfd014b1a4d6e2650a28d61cb82a -pre_configure() { +post_patch() { # Rename keymap files with the same names # this is needed because when only name of keymap is specified - # oadkeys loads the first keymap it can find, which is bad + # loadkeys loads the first keymap it can find, which is bad # this should be removed when upstream adopts the change mv data/keymaps/i386/qwertz/cz{,-qwertz}.map mv data/keymaps/i386/olpc/es{,-olpc}.map @@ -35,13 +35,6 @@ pre_configure() { cp azerty/fr-latin9.map azerty/fr.map cp azerty/fr-latin9.map azerty/fr-latin0.map # legacy alias - cd $wrksrc - - sed -e '/^PKG_CHECK_MODULES.*/d' -i configure.ac - sed -e 's,tests ,,g' -i Makefile.am - - cp $FILESDIR/error.h . - autoreconf -fi } post_install() { # Remove keymaps for sun, amiga and atari.