wok-current view libcdio/receipt @ rev 25728

Merge wok for both arch and few updates
author Stanislas Leduc <shann@slitaz.org>
date Thu Dec 05 08:39:45 2024 +0000 (7 weeks ago)
parents 71360a13cd94
children
line source
1 # SliTaz package receipt.
3 PACKAGE="libcdio"
4 VERSION="2.1.0"
5 CATEGORY="multimedia"
6 SHORT_DESC="GNU Compact Disk Input and Control Library."
7 MAINTAINER="rj.rohit@gmail.com"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/libcdio/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$GNU_MIRROR/libcdio/$TARBALL"
14 DEPENDS="gcc-lib-base libcddb ncurses"
15 BUILD_DEPENDS="gcc-lib-base libcddb libcddb-dev ncurses-dev"
17 HOST_ARCH="i486 x86_64"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
23 sed "/paranoia/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 export LDFLAGS="$LDFLAGS -ltinfo"
30 grep -qs 'define u8' lib/driver/gnu_linux.c ||
31 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' \
32 lib/driver/gnu_linux.c
34 ./configure \
35 --prefix=/usr \
36 --disable-vcd-info \
37 $CONFIGURE_ARGS &&
38 make -j 1 &&
39 make DESTDIR=$DESTDIR install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/lib
46 cp -a $install/usr/lib/*.so* $fs/usr/lib
47 }