Convert/update sharutils to working recipe

--HG--
rename : app-arch/sharutils/sharutils-4.10.recipe => app-arch/sharutils/sharutils-4.14.recipe
This commit is contained in:
Chris Roberts
2013-11-24 20:54:41 -07:00
parent efbde530ea
commit 0a4db91cd1
4 changed files with 93 additions and 46 deletions

View File

@@ -0,0 +1,74 @@
SUMMARY="sharutils"
DESCRIPTION="
GNU shar makes so-called shell archives out of many files, preparing
them for transmission by electronic mail services. A shell archive is
a collection of files that can be unpacked by /bin/sh. A wide range
of features provide extensive flexibility in manufacturing shars and
in specifying shar smartness. For example, shar may compress files,
uuencode binary files, split long files and construct multi-part
mailings, ensure correct unsharing order, and provide simplistic
checksums.
GNU unshar scans a set of mail messages looking for the start of shell
archives. It will automatically strip off the mail headers and other
introductory text. The archive bodies are then unpacked by a copy of
the shell. unshar may also process files containing concatenated
shell archives.
"
HOMEPAGE="http://www.gnu.org/software/sharutils/"
LICENSE="GNU GPL v3"
COPYRIGHT="1990-2013 Free Software Foundation, Inc."
SRC_URI="http://ftp.gnu.org/gnu/sharutils/sharutils-4.14.tar.xz"
CHECKSUM_MD5="77ede22951bdb67279c6e78e79a04784"
REVISION="1"
ARCHITECTURES="x86 ?x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
else
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
sharutils$secondaryArchSuffix = $portVersion
cmd:shar$secondaryArchSuffix = $portVersion
cmd:unshar$secondaryArchSuffix = $portVersion
cmd:uudecode$secondaryArchSuffix = $portVersion
cmd:uuencode$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
"
BUILD_PREREQUIRES="
cmd:make
cmd:which
cmd:bison
cmd:makeinfo
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
"
PATCHES="sharutils-4.14.patchset"
BUILD()
{
runConfigure ./configure \
--disable-nls
make
}
INSTALL()
{
make install
rm -rf $libDir
}