wok view mpg123/receipt @ rev 24640
updated help2man (1.47.12 -> 1.49.1)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 09 15:53:44 2022 +0100 (2022-03-09) |
parents | 83b97236db32 |
children | cf6b90afa0a2 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mpg123"
4 VERSION="1.25.13"
5 CATEGORY="multimedia"
6 SHORT_DESC="Command line audio player and streamer."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://www.mpg123.de/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="${WEB_SITE}download/$TARBALL"
14 DEPENDS="alsa-lib audiofile libltdl"
15 BUILD_DEPENDS="alsa-lib-dev audiofile-dev"
17 HOST_ARCH="i486 arm"
19 # Arch optimisation
20 case "$ARCH" in
21 i486) ARCH_ARGS="--with-cpu=i486" ;;
22 arm*) ARCH_ARGS="--with-cpu=arm_nofpu" ;;
23 esac
25 # What is the latest version available today?
26 current_version()
27 {
28 wget -O - ${WGET_URL%/*} 2>/dev/null | \
29 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
30 }
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 ./configure \
36 --with-default-audio=alsa \
37 $CONFIGURE_ARGS \
38 ${ARCH_ARGS} &&
39 make &&
40 make install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/lib
48 cp -a $install/usr/lib/*.so* $fs/usr/lib
49 cp -a $install/usr/bin $fs/usr
51 # ARM
52 if [ -d "$install/usr/lib/mpg123" ]
53 then
54 cp -a $install/usr/lib/mpg123 $fs/usr/lib
55 #mpg123 need *.la file to work
56 #find $fs/usr/lib -name "*.la" -exec rm -f {} \;
57 fi
59 # Needed to work!!! Dont remove
60 cp $install/usr/lib/libmpg123.la $fs/usr/lib
61 }