wok view libcdio/receipt @ rev 25051

Up terminology (0.7.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jun 05 10:44:35 2022 +0000 (23 months ago)
parents e36f778452bc
children d79ed38ace18
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 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
21 sed "/paranoia/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export LDFLAGS="$LDFLAGS -ltinfo"
28 grep -qs 'define u8' lib/driver/gnu_linux.c ||
29 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' \
30 lib/driver/gnu_linux.c
32 ./configure \
33 --prefix=/usr \
34 --disable-vcd-info \
35 $CONFIGURE_ARGS &&
36 make -j 1 &&
37 make DESTDIR=$DESTDIR install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/lib
44 cp -a $install/usr/lib/*.so* $fs/usr/lib
45 }