This is the script:
Code: Select all
pkgname=libhdate
libname=libhdate
pkgver=1.6.02
libver=1.0.6
pkgrel=1zy
source=("http://downloads.sourceforge.net/project/$libname/$libname/$libname-$pkgver/$libname-$pkgver.tar.bz2")
url="http://libhdate.sourceforge.net/"
docs=('AUTHORS' 'ChangeLog' 'COPYING' 'INSTALL' 'NEWS' 'README' 'USE')
slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname (C,C++ library for Hebrew calendar and dates.)"
"LibHdate is a small C,C++ library for Hebrew calendar and dates, "
"holidays, and reading sequence."
)
build() {
cd $startdir/src/${pkgname}-${pkgver}
./configure \
--prefix=/usr \
--disable-fpc \
--disable-gpc \
--disable-perl \
--disable-php \
--disable-python \
--disable-ruby \
--build=$arch-slackware-linux
make || return 1
make DESTDIR=$startdir/pkg/ install || return 1
(
cd $startdir/pkg/usr/lib/
rm -rf libhdate.so
ln -sf libhdate.so.1.0.6 libhdate.so
rm -rf libhdate.so.1
ln -sf libhdate.so.1.0.6 libhdate.so.1
)
}
Code: Select all
Slackware package maker, version 3.141593.
Searching for symbolic links:
usr/lib/libhdate.so libhdate.so.1.0.6
usr/lib/libhdate.so.1 libhdate.so.1.0.6
Making symbolic link creation script:
( cd usr/lib ; rm -rf libhdate.so )
( cd usr/lib ; ln -sf libhdate.so.1.0.6 libhdate.so )
( cd usr/lib ; rm -rf libhdate.so.1 )
( cd usr/lib ; ln -sf libhdate.so.1.0.6 libhdate.so.1 )
It is recommended that you make these lines your new installation script.
Would you like to make this stuff the install script for this package
and remove the symbolic links ([y]es, [n]o)? y
Removing symbolic links:
removed './usr/lib/libhdate.so'
removed './usr/lib/libhdate.so.1'
Creating your new ./install/doinst.sh...
Code: Select all
$ hcal
hcal: error while loading shared libraries: libhdate.so.1: cannot open shared object file: No such file or directory
$ hdate
hdate: error while loading shared libraries: libhdate.so.1: cannot open shared object file: No such file or directory