wok-6.x annotate pmail/receipt @ rev 25035
Up libqcow (20210419)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 20 18:11:13 2022 +0000 (2022-05-20) |
parents | 42380dbaadb7 |
children |
rev | line source |
---|---|
pascal@2328 | 1 # SliTaz package receipt. |
pascal@2328 | 2 |
pascal@2328 | 3 PACKAGE="pmail" |
pascal@2328 | 4 VERSION="0.9.16" |
pascal@2328 | 5 CATEGORY="network" |
pascal@2328 | 6 SHORT_DESC="Mail transfer client based on the protocols of POP3 and SMTP." |
pascal@2328 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15375 | 8 LICENSE="GPL2" |
pascal@2328 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@2328 | 10 WEB_SITE="http://www.ibiblio.org/pub/Linux/system/mail/pop/" |
pascal@2328 | 11 WGET_URL="${WEB_SITE}$TARBALL" |
pascal@2328 | 12 |
pascal@24425 | 13 # What is the latest version available today? |
pascal@24425 | 14 current_version() |
pascal@24425 | 15 { |
pascal@24425 | 16 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24425 | 17 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24425 | 18 } |
pascal@24425 | 19 |
pascal@2328 | 20 # Rules to configure and make the package. |
pascal@2328 | 21 compile_rules() |
pascal@2328 | 22 { |
pascal@15375 | 23 sed -i -e "s|BINDIR = @prefix@/bin|BINDIR = $DESTDIR/usr/bin|" \ |
pascal@19293 | 24 -e "s|MANDIR = @prefix@/man/man1|MANDIR = $DESTDIR/usr/share/man/man1|" \ |
pascal@2328 | 25 Makefile.in |
pascal@19293 | 26 mkdir -p $DESTDIR/usr/bin $DESTDIR/usr/share/man/man1 |
pascal@2328 | 27 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@2328 | 28 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@11902 | 29 make -j 1 && |
pascal@15375 | 30 make DESTDIR=$DESTDIR install |
pascal@2328 | 31 } |
pascal@2328 | 32 |
pascal@2328 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2328 | 34 genpkg_rules() |
pascal@2328 | 35 { |
pascal@2328 | 36 mkdir -p $fs/usr |
pascal@15375 | 37 cp -a $install/usr/bin $fs/usr |
pascal@2328 | 38 } |