From 76bc92128b0c002724761316fa2f52d8a4cf6497 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Wed, 23 Jan 2019 14:58:32 -0200 Subject: [PATCH] pilot-link: use slackware mirror, fix build, udev rules and matherr --- srcpkgs/pilot-link/patches/musl-matherr.patch | 2 +- srcpkgs/pilot-link/template | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/srcpkgs/pilot-link/patches/musl-matherr.patch b/srcpkgs/pilot-link/patches/musl-matherr.patch index 73fe5223fbe..722cb6d10ff 100644 --- a/srcpkgs/pilot-link/patches/musl-matherr.patch +++ b/srcpkgs/pilot-link/patches/musl-matherr.patch @@ -4,7 +4,7 @@ * Sun shared libraries to be used for Tcl. */ -+#if defined(__GLIBC__) ++#if 0 extern int matherr(); int *tclDummyMathPtr = (int *) matherr; +#endif diff --git a/srcpkgs/pilot-link/template b/srcpkgs/pilot-link/template index 2be2a529d4a..fc75c1e44b5 100644 --- a/srcpkgs/pilot-link/template +++ b/srcpkgs/pilot-link/template @@ -17,8 +17,8 @@ license="GPL-2" homepage="http://www.pilot-link.org/" # Main site is unreachable (no address record). #distfiles="http://downloads.pilot-link.org/${pkgname}-${version}.tar.bz2" -distfiles="https://fossies.org/linux/misc/old/${pkgname}-${version}.tar.bz2" -checksum=0e3e0ea4649c7c3441b8be738d5e68332a5e414df622e013daba8e29d78bde56 +distfiles="https://mirrors.slackware.com/slackware/slackware-14.1/source/l/pilot-link/pilot-link-${version}.tar.bz2" +checksum=d3f99ec04016b38995fb370265200254710318105c792c017d3aaccfb97a84b2 # Avoid error because of deprecation CFLAGS="-Wno-deprecated-declarations" @@ -27,6 +27,7 @@ LDFLAGS="-lm" pre_configure() { autoreconf -fi } + post_configure() { # --disable-compile-error does not seem to work so patch Makefiles find -name Makefile -exec sed -i "{}" -e "s;-Werror;-Wno-error;g" \; @@ -34,11 +35,12 @@ post_configure() { sed -i bindings/Perl/Makefile \ -e "s;/usr/lib/perl/5.10/Config.pm;/usr/lib/perl5/core_perl/Config.pm;" } + post_install() { local m # Install udev rules for libpisock - vinstall doc/60-libpisock.rules 644 etc/udev/rules.d + vinstall doc/60-libpisock.rules 644 usr/lib/udev/rules.d # Install manual pages for m in doc/man/*.1; do @@ -50,6 +52,7 @@ pilot-link-devel_package() { short_desc+=" - development files" depends="${makedepends} ${sourcepkg}>=${version}_${revision}" pkg_install() { + vmove usr/share/aclocal vmove usr/include vmove usr/lib/pkgconfig vmove usr/lib/*.so