wok-next diff pari/receipt @ rev 20712
libtorrent: fix rtorrent building for non-64bit archs
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun May 27 12:13:53 2018 +0300 (2018-05-27) |
parents | 7639f09792cf |
children | d5aab818505e |
line diff
1.1 --- a/pari/receipt Wed Feb 28 13:56:24 2018 +0200 1.2 +++ b/pari/receipt Sun May 27 12:13:53 2018 +0300 1.3 @@ -1,4 +1,4 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="pari" 1.8 VERSION="2.5.3" 1.9 @@ -7,19 +7,21 @@ 1.10 MAINTAINER="al.bobylev@gmail.com" 1.11 LICENSE="GPL2" 1.12 WEB_SITE="http://pari.math.u-bordeaux.fr/" 1.13 + 1.14 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.15 WGET_URL="http://pari.math.u-bordeaux.fr/pub/$PACKAGE/unix/$TARBALL" 1.16 1.17 -DEPENDS="glibc-base gmp xorg-libxcb ncurses readline xorg-libX11 xorg-libXau \ 1.18 -xorg-libXdmcp" 1.19 BUILD_DEPENDS="gmp-dev readline-dev xorg-libX11-dev" 1.20 +SPLIT="pari-dev" 1.21 1.22 -# Rules to configure and make the package. 1.23 -compile_rules() 1.24 -{ 1.25 +compile_rules() { 1.26 mkdir build 1.27 # this configure not respect $CONFIGURE_ARGS :( 1.28 - ./Configure --host=$ARCH --graphic=X11 --builddir=build --prefix=/usr && 1.29 + ./Configure \ 1.30 + --host=$ARCH \ 1.31 + --graphic=X11 \ 1.32 + --builddir=build \ 1.33 + --prefix=/usr && 1.34 cd build 1.35 make all && 1.36 make DESTDIR=$install install 2>&1 | sed \ 1.37 @@ -28,11 +30,15 @@ 1.38 rm -rf $src/build 1.39 } 1.40 1.41 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.42 -genpkg_rules() 1.43 -{ 1.44 - mkdir -p $fs/usr/lib/pari $fs/usr/share 1.45 - cp -a $install/usr/bin $fs/usr 1.46 - cp -a $install/usr/lib/pari $fs/usr/lib 1.47 - cp -a $install/usr/share/pari $fs/usr/share 1.48 +genpkg_rules() { 1.49 + case $PACKAGE in 1.50 + pari) 1.51 + copy @std 1.52 + DEPENDS="glibc-base gmp xorg-libxcb ncurses readline xorg-libX11 \ 1.53 + xorg-libXau xorg-libXdmcp" 1.54 + ;; 1.55 + *-dev) 1.56 + copy @dev 1.57 + ;; 1.58 + esac 1.59 }