wok-current annotate lapack/receipt @ rev 24425
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 11 17:50:36 2022 +0000 (2022-02-11) |
parents | 6c3718ca17b6 |
children | 5ff61bfa6ca2 |
rev | line source |
---|---|
slaxemulator@13095 | 1 # SliTaz package receipt. |
slaxemulator@13095 | 2 |
slaxemulator@13095 | 3 PACKAGE="lapack" |
slaxemulator@13095 | 4 VERSION="3.4.0" |
slaxemulator@13095 | 5 CATEGORY="misc" |
slaxemulator@13095 | 6 SHORT_DESC="Linear Algebra PACKage" |
slaxemulator@13095 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15472 | 8 LICENSE="BSD" |
slaxemulator@13095 | 9 TARBALL="$PACKAGE-$VERSION.tgz" |
slaxemulator@13095 | 10 WEB_SITE="http://www.netlib.org/lapack" |
slaxemulator@13095 | 11 WGET_URL="$WEB_SITE/$TARBALL" |
slaxemulator@13095 | 12 |
slaxemulator@13095 | 13 DEPENDS="gcc-lib-base blas" |
slaxemulator@13095 | 14 BUILD_DEPENDS="gfortran blas" |
slaxemulator@13095 | 15 |
pascal@24425 | 16 # What is the latest version available today? |
pascal@24425 | 17 current_version() |
pascal@24425 | 18 { |
pascal@24425 | 19 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24425 | 20 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24425 | 21 } |
pascal@24425 | 22 |
slaxemulator@13095 | 23 # Rules to configure and make the package. |
slaxemulator@13095 | 24 compile_rules() |
slaxemulator@13095 | 25 { |
slaxemulator@13095 | 26 cd $src |
slaxemulator@13095 | 27 cp -f $src/INSTALL/make.inc.gfortran make.inc |
slaxemulator@13095 | 28 cp -f "$stuff/Makefile.lapack" $src/SRC/Makefile |
slaxemulator@13095 | 29 |
slaxemulator@13095 | 30 export FC=gfortran |
slaxemulator@13095 | 31 |
slaxemulator@13095 | 32 cd $src/INSTALL |
slaxemulator@13095 | 33 make clean |
slaxemulator@13095 | 34 make NOOPT="${CFLAGS/-O?/-O0} -fPIC" OPTS="${CFLAGS} -fPIC" |
slaxemulator@13095 | 35 |
slaxemulator@13095 | 36 cd $src/SRC |
slaxemulator@13095 | 37 make clean |
slaxemulator@13095 | 38 |
slaxemulator@13095 | 39 make FFLAGS="${CFLAGS} -fPIC" CFLAGS="${CFLAGS} -fPIC" shared |
slaxemulator@13095 | 40 cp liblapack.so.$VERSION "$src/" |
slaxemulator@13095 | 41 } |
slaxemulator@13095 | 42 |
slaxemulator@13095 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@13095 | 44 genpkg_rules() |
slaxemulator@13095 | 45 { |
slaxemulator@13095 | 46 mkdir -p $fs/usr |
slaxemulator@13095 | 47 |
slaxemulator@13095 | 48 install -m755 -d "$fs/usr/lib" |
slaxemulator@13095 | 49 install -m755 "$src/liblapack.so.$VERSION" \ |
slaxemulator@13095 | 50 "$fs/usr/lib/" |
slaxemulator@13095 | 51 ln -sf liblapack.so.$VERSION "$fs/usr/lib/liblapack.so" |
slaxemulator@13095 | 52 ln -sf liblapack.so.$VERSION "$fs/usr/lib/liblapack.so.3" |
slaxemulator@13095 | 53 |
slaxemulator@13095 | 54 install -m755 -d "$fs/usr/share/licenses" |
slaxemulator@13095 | 55 install -m644 "$src/LICENSE" \ |
slaxemulator@13095 | 56 "$fs/usr/share/licenses/lapack.LICENSE" |
slaxemulator@13095 | 57 } |
slaxemulator@13095 | 58 |