summaryrefslogtreecommitdiff
path: root/dos2unix/Pkgfile
blob: c7f8f756068f54696fabb310682e8121d4382feb (plain)
    1 # Description: Dos2unix converts DOS or MAC text files to UNIX format
    2 # URL: NA
    3 # Maintainer: Jose V Beneyto, sepen at users dot sourceforge dot net
    4 # Packager: Jose V Beneyto, sepen at users dot sourceforge dot net
    5 # Depends on: rpm2targz
    6 
    7 name=dos2unix
    8 version=3.1-27.1
    9 release=1
   10 source=(ftp://rpmfind.net/linux/redhat/enterprise/5Server/en/os/SRPMS/$name-$version.src.rpm)
   11 
   12 build() {
   13   rpm2targz $name-$version.src.rpm
   14   tar xzf $name-$version.src.tar.gz
   15   tar xjf $name-3.1.tar.bz2
   16   patch -p0 -i $name-3.1.patch
   17   patch -p0 -i $name-3.1-segfault.patch
   18   patch -p0 -i $name-3.1-safeconv.patch
   19   patch -p0 -i $name-3.1-manpage-update-57507.patch
   20   patch -p0 -i $name-3.1-preserve-file-modes.patch
   21   patch -p0 -i $name-3.1-tmppath.patch
   22   cd $name-3.1
   23   make clean
   24   make link
   25   make
   26   install -D -m 0755 $name $PKG/usr/bin/$name
   27   install -D -m 0644 $name.1 $PKG/usr/man/man1/$name.1
   28   install -D -m 0755 mac2unix $PKG/usr/bin/mac2unix
   29   install -D -m 0644 mac2unix.1 $PKG/usr/man/man1/mac2unix.1
   30 }

Generated by cgit