wok-next view 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 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="dmraid"
4 VERSION="1.0.0.rc16-3"
5 CATEGORY="system-tools"
6 SHORT_DESC="Device-Mapper Software Raid Tool"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://people.redhat.com/~heinzm/sw/dmraid/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$WEB_SITE/src/$TARBALL"
14 BUILD_DEPENDS="libdevmapper libdevmapper-dev"
16 compile_rules() {
17 mv $src/$VERSION/$PACKAGE/* $src && rmdir $src/$VERSION 2>/dev/null
18 cd $src
19 #sed -i 's/sed --quiet/sed/' configure configure.in
20 grep -qs 'define u8' lib/device/scsi.c ||
21 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' lib/device/scsi.c
22 ./configure $CONFIGURE_ARGS &&
23 make || return 1
25 mkdir -p $install/usr/sbin $install/usr/lib
26 cp -a $src/lib/libdmraid.so $install/usr/lib/libdmraid.so.1
27 cp -a $src/tools/dmraid $install/usr/sbin
28 cp -a stuff/grub-dmraid $install/usr/sbin
29 cp -a stuff/dmraid-start $install/usr/sbin
30 }
32 genpkg_rules() {
33 copy @std
34 DEPENDS="libdevmapper linux-md"
35 }