wok-current view x264/receipt @ rev 25483

created recipe for py3k-six
author Hans-G?nter Theisgen
date Mon Oct 17 07:54:33 2022 +0100 (2022-10-17)
parents db191dc5aff6
children 5926178cd6fa
line source
1 # SliTaz package receipt.
3 PACKAGE="x264"
4 VERSION="20191217-2245"
5 CATEGORY="multimedia"
6 MAINTAINER="jozee@slitaz.org"
7 LICENSE="GPL2"
8 SHORT_DESC="Free library for encoding H264/AVC video streams."
9 WEB_SITE="https://www.videolan.org/developers/x264.html"
11 SOURCE="$PACKAGE-snapshot"
12 TARBALL="$SOURCE-$VERSION.tar.bz2"
13 WGET_URL="http://ftp.videolan.org/pub/videolan/x264/snapshots/$TARBALL"
15 DEPENDS="glibc-base"
16 BUILD_DEPENDS="nasm"
18 #HOST_ARCH="i486 arm"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
24 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-||;s|.[st].*||" | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./configure \
31 --enable-shared \
32 $CONFIGURE_ARGS &&
33 make &&
34 make install \
35 DESTDIR=$DESTDIR \
36 bindir=/usr/bin \
37 libdir=/usr/lib \
38 includedir=/usr/include
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib
46 cp -a $install/usr/bin $fs/usr
47 cp -a $install/usr/lib/*so* $fs/usr/lib/
48 }