wok-current view npth/receipt @ rev 25556

created recipes for nted and nted-lang
author Hans-G?nter Theisgen
date Sat Apr 22 14:54:15 2023 +0100 (20 months ago)
parents 70356dd15554
children 5926178cd6fa
line source
1 # SliTaz package receipt.
3 PACKAGE="npth"
4 VERSION="1.6"
5 CATEGORY="security"
6 SHORT_DESC="The new GNU portable threads library."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2 LGPL3"
9 WEB_SITE="https://www.gnupg.org/software/npth/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="https://www.gnupg.org/ftp/gcrypt/$PACKAGE/$TARBALL"
14 DEPENDS="glibc-base"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 # Integrity check: https://www.gnupg.org/download/integrity_check.html
27 echo "f9d63e9747b027e4e404fe3c20c73c73719e1731 $SRC/$TARBALL" | sha1sum -c || exit 1
29 ./configure $CONFIGURE_ARGS &&
30 make &&
31 make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib
38 cp -a $install/usr/lib/*.so* $fs/usr/lib
39 }