wok-next annotate patch/receipt @ rev 19682

Up at-spi2-atk, at-spi2-core, atk, atkmm, glibmm, gobject-introspection, libgiomm, libsigc++
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Apr 10 00:21:34 2017 +0300 (2017-04-10)
parents 9e01bc6321ea
children 7387df590f12
rev   line source
pankso@26 1 # SliTaz package receipt.
pankso@26 2
pankso@26 3 PACKAGE="patch"
al@19568 4 VERSION="2.7.5"
pankso@211 5 CATEGORY="utilities"
pankso@26 6 SHORT_DESC="Utilitie to patch file with diff file."
pankso@26 7 MAINTAINER="pankso@slitaz.org"
pascal@14999 8 LICENSE="GPL3"
al@19568 9 WEB_SITE="http://savannah.gnu.org/projects/patch/"
al@19568 10 HOST_ARCH="i486 arm"
al@19568 11
samuel_trassare@13486 12 TARBALL="$PACKAGE-$VERSION.tar.xz"
pankso@26 13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
al@19568 14
al@19568 15 DEPENDS="attr"
al@19568 16 BUILD_DEPENDS="attr-dev"
pankso@26 17
pankso@26 18 # Rules to configure and make the package.
pankso@26 19 compile_rules()
pankso@26 20 {
al@19568 21 ./configure $CONFIGURE_ARGS && make && make install
pankso@26 22 }
pankso@26 23
pankso@26 24 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@26 25 genpkg_rules()
pankso@26 26 {
pankso@26 27 mkdir -p $fs/usr/bin
pascal@14999 28 cp -a $install/usr/bin/patch $fs/usr/bin
pankso@26 29 }
pankso@26 30
pankso@26 31 # Prevent erasing busybox...
pankso@26 32 pre_install()
pankso@26 33 {
pascal@18730 34 rm -f "$1/usr/bin/patch"
pankso@26 35 }
pascal@303 36
pascal@303 37 post_remove()
pascal@303 38 {
pascal@18730 39 ln -s /bin/busybox "$1/usr/bin/patch"
pascal@303 40 }