forked from ports/contrib
32 lines
1.0 KiB
Plaintext
32 lines
1.0 KiB
Plaintext
# Description: Dos2unix converts DOS or MAC text files to UNIX format
|
|
# URL: NA
|
|
# Maintainer: Jose V Beneyto, sepen at users dot sourceforge dot net
|
|
# Packager: Jose V Beneyto, sepen at users dot sourceforge dot net
|
|
# Depends on: rpm2targz
|
|
|
|
name=dos2unix
|
|
version=3.1-21
|
|
release=1
|
|
source=(ftp://rpmfind.net/linux/redhat/enterprise/4/en/os/i386/SRPMS/$name-$version.src.rpm)
|
|
|
|
build() {
|
|
rpm2targz $name-$version.src.rpm
|
|
tar xzf $name-$version.src.tar.gz
|
|
tar xjf $name-3.1.tar.bz2
|
|
patch -p0 -i $name-3.1.patch
|
|
patch -p0 -i $name-3.1-segfault.patch
|
|
patch -p0 -i $name-3.1-safeconv.patch
|
|
patch -p0 -i $name-3.1-manpage-update-57507.patch
|
|
patch -p0 -i $name-3.1-preserve-file-modes.patch
|
|
patch -p0 -i $name-3.1-tmppath.patch
|
|
cd $name-3.1
|
|
# sed -i 's|mktemp|mkstemp|g' dos2unix.c
|
|
make clean
|
|
make link
|
|
make
|
|
install -D -m 0755 $name $PKG/usr/bin/$name
|
|
install -D -m 0644 $name.1 $PKG/usr/man/man1/$name.1
|
|
install -D -m 0755 mac2unix $PKG/usr/bin/mac2unix
|
|
install -D -m 0644 mac2unix.1 $PKG/usr/man/man1/mac2unix.1
|
|
}
|