wok-next annotate posixovl/receipt @ rev 20715

Up nsd (4.1.21)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun May 27 13:10:46 2018 +0300 (2018-05-27)
parents f463de72afe3
children d5aab818505e
rev   line source
al@20443 1 # SliTaz package receipt v2.
pascal@10913 2
pascal@10913 3 PACKAGE="posixovl"
pascal@11987 4 VERSION="1.2"
pascal@10913 5 CATEGORY="system-tools"
al@17992 6 SHORT_DESC="FUSE file system that provides POSIX functionality"
pascal@10913 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15375 8 LICENSE="GPL2"
al@19663 9 WEB_SITE="https://sourceforge.net/projects/posixovl/"
pascal@10913 10
al@19663 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
al@19663 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
al@19663 13
al@20443 14 BUILD_DEPENDS="autoconf automake fuse2-dev attr-dev"
pascal@10913 15
al@20443 16 compile_rules() {
al@17992 17 mv $PACKAGE $src 2>/dev/null
pascal@10913 18 cd $src
pascal@14245 19 grep -q 'else if (!S_ISREG' posixovl.c ||
pascal@14245 20 sed -i 's/if (!S_ISREG/if (S_ISLNK(cb->ll.mode))\n\t\tcb->sb.st_size = strlen(cb->ll.target);\n\telse &/' posixovl.c
pascal@14245 21 sed -i 's/cb->ll.size/0/' posixovl.c
al@19663 22
pascal@10913 23 sh autogen.sh
al@19663 24 ./configure $CONFIGURE_ARGS && make && make install
pascal@10913 25 }
pascal@10913 26
al@20443 27 genpkg_rules() {
al@19783 28 copy sbin/
al@20443 29 DEPENDS="fuse2"
al@20443 30 TAGS="filesystem"
pascal@10913 31 }