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