wok-next annotate xorg-luit/receipt @ rev 20348
ploticus (2.42)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 18 17:19:51 2017 +0100 (2017-11-18) |
parents | f463de72afe3 |
children | 0e7893ac206d |
rev | line source |
---|---|
al@19805 | 1 # SliTaz package receipt v2. |
al@19645 | 2 |
al@19645 | 3 PACKAGE="xorg-luit" |
al@19645 | 4 VERSION="1.1.1" |
al@19645 | 5 CATEGORY="x-window" |
al@19805 | 6 SHORT_DESC="Convert terminal i/o from legacy encodings to UTF-8" |
al@19645 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@19645 | 8 LICENSE="MIT" |
al@19645 | 9 WEB_SITE="https://www.x.org/wiki/" |
al@19645 | 10 |
al@19645 | 11 TARBALL="luit-$VERSION.tar.bz2" |
al@19645 | 12 WGET_URL="$XORG_MIRROR/app/$TARBALL" |
al@19645 | 13 |
al@19645 | 14 BUILD_DEPENDS="xorg-util-macros xorg-libfontenc-dev xorg-libX11-dev" |
al@19805 | 15 PKG_RULE="std" |
al@19645 | 16 |
al@19645 | 17 # Rules to configure and make the package. |
al@19645 | 18 compile_rules() |
al@19645 | 19 { |
al@19645 | 20 line1="#ifdef _XOPEN_SOURCE" |
al@19645 | 21 line2="# undef _XOPEN_SOURCE" |
al@19645 | 22 line3="# define _XOPEN_SOURCE 600" |
al@19645 | 23 line4="#endif" |
al@19645 | 24 sed -i -e "s@#ifdef HAVE_CONFIG_H@$line1\n$line2\n$line3\n$line4\n\n&@" sys.c |
al@19645 | 25 unset line1 line2 line3 line4 |
al@19645 | 26 |
al@19805 | 27 ./configure \ |
al@19805 | 28 --sysconfdir=/etc \ |
al@19805 | 29 --localstatedir=/var \ |
al@19805 | 30 $CONFIGURE_ARGS && |
al@19805 | 31 make && |
al@19805 | 32 make install |
al@19645 | 33 } |
al@19645 | 34 |
al@19645 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19645 | 36 genpkg_rules() |
al@19645 | 37 { |
al@19805 | 38 copy @std |
al@19805 | 39 DEPENDS="xorg-libfontenc" |
al@19645 | 40 } |