wok-next view xorg-luit/receipt @ rev 19783

Up receipts to v2 syntax: cook_copy_files & cook_copy_folders -> copy
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Jun 18 04:38:10 2017 +0300 (2017-06-18)
parents 0994d769f208
children ea3c4b76ea5d
line source
1 # SliTaz package receipt.
3 PACKAGE="xorg-luit"
4 VERSION="1.1.1"
5 CATEGORY="x-window"
6 SHORT_DESC="Locale and ISO 2022 support for Unicode terminals"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="MIT"
9 WEB_SITE="https://www.x.org/wiki/"
11 TARBALL="luit-$VERSION.tar.bz2"
12 WGET_URL="$XORG_MIRROR/app/$TARBALL"
14 DEPENDS="xorg-libfontenc"
15 BUILD_DEPENDS="xorg-util-macros xorg-libfontenc-dev xorg-libX11-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 line1="#ifdef _XOPEN_SOURCE"
21 line2="# undef _XOPEN_SOURCE"
22 line3="# define _XOPEN_SOURCE 600"
23 line4="#endif"
24 sed -i -e "s@#ifdef HAVE_CONFIG_H@$line1\n$line2\n$line3\n$line4\n\n&@" sys.c
25 unset line1 line2 line3 line4
27 ./configure $CONFIGURE_ARGS && make && make install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 copy bin/
34 }