wok annotate x265/receipt @ rev 24857
updated links and links-dfb (2.20.2 -> 2.25)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 28 17:04:25 2022 +0100 (2022-03-28) |
parents | 64085bdff041 |
children | 18342dfd2c1b |
rev | line source |
---|---|
pascal@19138 | 1 # SliTaz package receipt. |
pascal@19138 | 2 |
pascal@19138 | 3 PACKAGE="x265" |
Hans-G?nter@22145 | 4 VERSION="3.2" |
pascal@19138 | 5 CATEGORY="multimedia" |
pascal@19138 | 6 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@19138 | 7 LICENSE="GPL2" |
Hans-G?nter@22145 | 8 SHORT_DESC="Free library for encoding H265/MPEG-H HEVC video streams." |
Hans-G?nter@22145 | 9 WEB_SITE="https://www.videolan.org/developers/x265.html" |
Hans-G?nter@22145 | 10 |
pascal@19138 | 11 TARBALL="${PACKAGE}_$VERSION.tar.gz" |
pascal@19138 | 12 WGET_URL="http://ftp.videolan.org/pub/videolan/x265/$TARBALL" |
pascal@19138 | 13 |
pascal@19138 | 14 DEPENDS="glibc-base" |
Hans-G?nter@22145 | 15 BUILD_DEPENDS="cmake nasm" |
Hans-G?nter@22145 | 16 |
Hans-G?nter@22145 | 17 #HOST_ARCH="i486 arm" |
pascal@19138 | 18 |
pascal@24465 | 19 # What is the latest version available today? |
pascal@24465 | 20 current_version() |
pascal@24465 | 21 { |
pascal@24465 | 22 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24465 | 23 sed "/latest/d;/${PACKAGE}_[0-9]/!d;/tar/!d;s|.*${PACKAGE}_\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24465 | 24 } |
pascal@24465 | 25 |
pascal@19138 | 26 # Rules to configure and make the package. |
pascal@19138 | 27 compile_rules() |
pascal@19138 | 28 { |
pascal@19138 | 29 cd $src/build |
pascal@19138 | 30 cmake -DCMAKE_INSTALL_PREFIX=/usr ../source && |
Hans-G?nter@22145 | 31 make && |
Hans-G?nter@22145 | 32 make DESTDIR=$DESTDIR install |
pascal@19138 | 33 } |
pascal@19138 | 34 |
pascal@19138 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@19138 | 36 genpkg_rules() |
pascal@19138 | 37 { |
pascal@19138 | 38 mkdir -p $fs/usr/lib |
Hans-G?nter@22145 | 39 |
Hans-G?nter@22145 | 40 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22145 | 41 cp -a $install/usr/lib/*so* $fs/usr/lib/ |
pascal@19138 | 42 } |