wok-current view posixovl/receipt @ rev 25351
updated tesseract and tesseract-dev (3.02.02 -> 5.2.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jul 26 13:57:27 2022 +0100 (2022-07-26) |
parents | ee53899c6189 |
children | ad0bc3efbf37 |
line source
1 # SliTaz package receipt.
3 PACKAGE="posixovl"
4 VERSION="1.3"
5 CATEGORY="system-tools"
6 TAGS="filesystem"
7 SHORT_DESC="FUSE file system that provides POSIX functionality."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://sourceforge.net/projects/posixovl/"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 DEPENDS="attr fuse2"
16 BUILD_DEPENDS="attr-dev autoconf automake fuse2-dev"
18 current_version()
19 {
20 wget -O - $WEB_SITE 2>/dev/null | \
21 sed '/posixovl-/!d;s|.*posixovl-||;s|.tar.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 mv $PACKAGE $src 2>/dev/null
28 cd $src
29 grep -q 'else if (!S_ISREG' posixovl.c ||
30 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
31 sed -i 's/cb->ll.size/0/' posixovl.c
32 sed -i 's|attr/xattr.h|sys/xattr.h|' posixovl.c configure*
34 sh autogen.sh
35 ./configure \
36 --prefix=/usr \
37 --mandir=/usr/share/man \
38 $CONFIGURE_ARGS &&
39 make
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/sbin
46 mkdir -p $install/usr/share/man/man1
48 cp $src/mount.posixovl $fs/usr/sbin
49 cp $src/posixovl.1 $install/usr/share/man/man1
50 }