pilot-link: use slackware mirror, fix build, udev rules and matherr

This commit is contained in:
maxice8 2019-01-23 14:58:32 -02:00
parent 4eb281dfee
commit 76bc92128b
No known key found for this signature in database
GPG Key ID: 543B9D4F4299F06B
2 changed files with 7 additions and 4 deletions

View File

@ -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

View File

@ -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