wok annotate xvidcore/receipt @ rev 24891
lynx: use ncursesw (tanks ceel)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 07 07:20:18 2022 +0000 (2022-04-07) |
parents | 983b132bc56b |
children |
rev | line source |
---|---|
devl547@5630 | 1 # SliTaz package receipt. |
devl547@5630 | 2 |
devl547@5630 | 3 PACKAGE="xvidcore" |
Hans-G?nter@23783 | 4 VERSION="1.3.7" |
devl547@5630 | 5 CATEGORY="multimedia" |
Hans-G?nter@22316 | 6 SHORT_DESC="XviD, a high performance and quality MPEG-4 video de- and encoding solution." |
devl547@5630 | 7 MAINTAINER="devl547@gmail.com" |
pascal@15579 | 8 LICENSE="GPL2" |
Hans-G?nter@22316 | 9 WEB_SITE="https://www.xvid.com/" |
Hans-G?nter@22316 | 10 |
devl547@5630 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
Hans-G?nter@23783 | 12 WGET_URL="https://downloads.xvid.com/downloads/$TARBALL" |
devl547@5630 | 13 |
pascal@15579 | 14 BUILD_DEPENDS="yasm" |
pascal@15579 | 15 |
Hans-G?nter@22316 | 16 HOST_ARCH="i486 arm" |
Hans-G?nter@22316 | 17 |
pascal@24374 | 18 # What is the latest version available today? |
pascal@24374 | 19 current_version() |
pascal@24374 | 20 { |
pascal@24374 | 21 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24374 | 22 sed -e 's|br/>|\n|g;/xvidcore-/!d' | sed '/tar..z/!d;s|.*xvidcore-||;s|.tar.*||' | sort -Vr | sed q |
pascal@24374 | 23 } |
pascal@24374 | 24 |
devl547@5630 | 25 # Rules to configure and make the package. |
devl547@5630 | 26 compile_rules() |
devl547@5630 | 27 { |
gokhlayeh@8227 | 28 cd $src/build/generic |
Hans-G?nter@22316 | 29 ./configure \ |
Hans-G?nter@22316 | 30 --prefix=/usr \ |
Hans-G?nter@22316 | 31 --mandir=/usr/share/man \ |
devl547@5630 | 32 $CONFIGURE_ARGS && |
devl547@5630 | 33 make && |
slaxemulator@12326 | 34 make DESTDIR=$DESTDIR install |
devl547@5630 | 35 } |
devl547@5630 | 36 |
devl547@5630 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
devl547@5630 | 38 genpkg_rules() |
devl547@5630 | 39 { |
devl547@5630 | 40 mkdir -p $fs/usr/lib |
Hans-G?nter@23783 | 41 |
Hans-G?nter@22316 | 42 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@23783 | 43 cd $fs/usr/lib |
slaxemulator@12326 | 44 _mylib=$(basename libxvidcore.so.*) |
slaxemulator@12326 | 45 ln -sf ${_mylib} libxvidcore.so.4 |
slaxemulator@12326 | 46 ln -sf ${_mylib} libxvidcore.so |
devl547@5630 | 47 } |