wok-6.x view fpc-src/receipt @ rev 24439
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 13 18:01:32 2022 +0000 (2022-02-13) |
parents | 6e8b1bcb30e2 |
children | 8f37db468deb |
line source
1 # SliTaz package receipt.
3 PACKAGE="fpc-src"
4 VERSION="2.6.4"
5 CATEGORY="development"
6 SHORT_DESC="Sources for the FreePascal compiler (requierd by the Lazarus IDE)."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2 LGPL2.1"
9 SOURCE="fpcbuild"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="https://www.freepascal.org/"
12 WGET_URL="ftp://ftp.freepascal.org/pub/fpc/dist/$VERSION/source/$TARBALL"
13 HOST_ARCH="i486 arm"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - https://gitlab.com/freepascal.org/fpc/source/-/tags 2>/dev/null | \
19 sed '/-\/tags\/[a-z_]*[0-9]/!d;/_rc/d;s|.*tags/[a-z_]*||;s|".*||;s|_|.|g;q'
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr/lib/fpc
26 cp -a $src/fpcsrc $fs/usr/lib/fpc/src
27 }