wok-next annotate dmraid/receipt @ rev 20461

Respect "install" phase (src -> install). Cook will fail if install dir empty (and it's by design).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Mar 04 04:56:40 2018 +0200 (2018-03-04)
parents eb8067417980
children 14cdf41afa35
rev   line source
al@20461 1 # SliTaz package receipt v2.
pascal@3934 2
pascal@3934 3 PACKAGE="dmraid"
slaxemulator@9582 4 VERSION="1.0.0.rc16-3"
pascal@3934 5 CATEGORY="system-tools"
al@20461 6 SHORT_DESC="Device-Mapper Software Raid Tool"
erjo@4689 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15579 8 LICENSE="GPL2"
al@20461 9 WEB_SITE="http://people.redhat.com/~heinzm/sw/dmraid/"
al@20461 10
pascal@3934 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@3934 12 WGET_URL="$WEB_SITE/src/$TARBALL"
slaxemulator@10300 13
slaxemulator@6360 14 BUILD_DEPENDS="libdevmapper libdevmapper-dev"
pascal@3934 15
al@20461 16 compile_rules() {
al@20461 17 mv $src/$VERSION/$PACKAGE/* $src && rmdir $src/$VERSION 2>/dev/null
pascal@3934 18 cd $src
pascal@3934 19 #sed -i 's/sed --quiet/sed/' configure configure.in
pascal@6113 20 grep -qs 'define u8' lib/device/scsi.c ||
pascal@6113 21 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' lib/device/scsi.c
slaxemulator@10300 22 ./configure $CONFIGURE_ARGS &&
al@20461 23 make || return 1
al@20461 24
al@20461 25 mkdir -p $install/usr/sbin $install/usr/lib
al@20461 26 cp -a $src/lib/libdmraid.so $install/usr/lib/libdmraid.so.1
al@20461 27 cp -a $src/tools/dmraid $install/usr/sbin
al@20461 28 cp -a stuff/grub-dmraid $install/usr/sbin
al@20461 29 cp -a stuff/dmraid-start $install/usr/sbin
pascal@3934 30 }
pascal@3934 31
al@20461 32 genpkg_rules() {
al@20461 33 copy @std
al@20461 34 DEPENDS="libdevmapper linux-md"
pascal@3934 35 }