wok-undigest diff alsa-lib/receipt @ rev 1235

compile alsa-lib
author Hans-G?nter Theisgen
date Sat Aug 06 17:22:27 2022 +0100 (2022-08-06)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/alsa-lib/receipt	Sat Aug 06 17:22:27 2022 +0100
     1.3 @@ -0,0 +1,48 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="alsa-lib"
     1.7 +VERSION="1.2.7"
     1.8 +CATEGORY="multimedia"
     1.9 +SHORT_DESC="Alsa sound libraries."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +LICENSE="LGPL2.1"
    1.12 +WEB_SITE="https://www.alsa-project.org/wiki/Main_Page"
    1.13 +
    1.14 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.15 +WGET_URL="ftp://ftp.alsa-project.org/pub/lib/$TARBALL"
    1.16 +
    1.17 +SUGGESTED="alsa-ucm-conf"
    1.18 +DEPENDS="linux"
    1.19 +
    1.20 +HOST_ARCH="i486 arm"
    1.21 +
    1.22 +current_version()
    1.23 +{
    1.24 +	wget -O - ${WEB_SITE}wiki/Download 2>/dev/null | \
    1.25 +	sed '/alsa-lib-/!d;s|.*alsa-lib-||;s|.tar.*||;q'
    1.26 +}
    1.27 +
    1.28 +# Rules to configure and make the package.
    1.29 +compile_rules()
    1.30 +{
    1.31 +	./configure			\
    1.32 +		--disable-python	\
    1.33 +		$CONFIGURE_ARGS &&
    1.34 +	make &&
    1.35 +	make install
    1.36 +}
    1.37 +
    1.38 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.39 +genpkg_rules()
    1.40 +{
    1.41 +	# Enable software mixing for multiple audio streams
    1.42 +	mkdir -p $fs/etc
    1.43 +	cp $stuff/asound.conf		$fs/etc
    1.44 +
    1.45 +	mkdir -p $fs/usr/lib
    1.46 +	mkdir -p $fs/usr/share
    1.47 +
    1.48 +	cp -a $install/usr/bin		$fs/usr
    1.49 +	cp -a $install/usr/lib/*.so*	$fs/usr/lib
    1.50 +	cp -a $install/usr/share/alsa	$fs/usr/share
    1.51 +}