mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 07:33:48 +02:00
pilot-link: use slackware mirror, fix build, udev rules and matherr
This commit is contained in:
parent
4eb281dfee
commit
76bc92128b
2 changed files with 7 additions and 4 deletions
|
@ -4,7 +4,7 @@
|
||||||
* Sun shared libraries to be used for Tcl.
|
* Sun shared libraries to be used for Tcl.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
+#if defined(__GLIBC__)
|
+#if 0
|
||||||
extern int matherr();
|
extern int matherr();
|
||||||
int *tclDummyMathPtr = (int *) matherr;
|
int *tclDummyMathPtr = (int *) matherr;
|
||||||
+#endif
|
+#endif
|
||||||
|
|
|
@ -17,8 +17,8 @@ license="GPL-2"
|
||||||
homepage="http://www.pilot-link.org/"
|
homepage="http://www.pilot-link.org/"
|
||||||
# Main site is unreachable (no address record).
|
# Main site is unreachable (no address record).
|
||||||
#distfiles="http://downloads.pilot-link.org/${pkgname}-${version}.tar.bz2"
|
#distfiles="http://downloads.pilot-link.org/${pkgname}-${version}.tar.bz2"
|
||||||
distfiles="https://fossies.org/linux/misc/old/${pkgname}-${version}.tar.bz2"
|
distfiles="https://mirrors.slackware.com/slackware/slackware-14.1/source/l/pilot-link/pilot-link-${version}.tar.bz2"
|
||||||
checksum=0e3e0ea4649c7c3441b8be738d5e68332a5e414df622e013daba8e29d78bde56
|
checksum=d3f99ec04016b38995fb370265200254710318105c792c017d3aaccfb97a84b2
|
||||||
|
|
||||||
# Avoid error because of deprecation
|
# Avoid error because of deprecation
|
||||||
CFLAGS="-Wno-deprecated-declarations"
|
CFLAGS="-Wno-deprecated-declarations"
|
||||||
|
@ -27,6 +27,7 @@ LDFLAGS="-lm"
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
}
|
}
|
||||||
|
|
||||||
post_configure() {
|
post_configure() {
|
||||||
# --disable-compile-error does not seem to work so patch Makefiles
|
# --disable-compile-error does not seem to work so patch Makefiles
|
||||||
find -name Makefile -exec sed -i "{}" -e "s;-Werror;-Wno-error;g" \;
|
find -name Makefile -exec sed -i "{}" -e "s;-Werror;-Wno-error;g" \;
|
||||||
|
@ -34,11 +35,12 @@ post_configure() {
|
||||||
sed -i bindings/Perl/Makefile \
|
sed -i bindings/Perl/Makefile \
|
||||||
-e "s;/usr/lib/perl/5.10/Config.pm;/usr/lib/perl5/core_perl/Config.pm;"
|
-e "s;/usr/lib/perl/5.10/Config.pm;/usr/lib/perl5/core_perl/Config.pm;"
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
local m
|
local m
|
||||||
|
|
||||||
# Install udev rules for libpisock
|
# 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
|
# Install manual pages
|
||||||
for m in doc/man/*.1; do
|
for m in doc/man/*.1; do
|
||||||
|
@ -50,6 +52,7 @@ pilot-link-devel_package() {
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
|
vmove usr/share/aclocal
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove usr/lib/pkgconfig
|
vmove usr/lib/pkgconfig
|
||||||
vmove usr/lib/*.so
|
vmove usr/lib/*.so
|
||||||
|
|
Loading…
Add table
Reference in a new issue