summaryrefslogtreecommitdiff
path: root/dos2unix/Pkgfile
diff options
context:
space:
mode:
authorJose V Beneyto <sepen@crux.nu>2010-05-12 08:42:40 +0200
committerJose V Beneyto <sepen@crux.nu>2010-05-12 09:24:26 +0200
commit1f6db1acdfa6eb3c5396da3fb800a3d81b436fd6 (patch)
treef0743b6fbe6219a7eec8f141a5c7a13653ed04a5 /dos2unix/Pkgfile
parentca2e38c19784ee8b3e2eb8fbb36fe0f1b21ad1d2 (diff)
downloadcontrib-1f6db1acdfa6eb3c5396da3fb800a3d81b436fd6.tar.gz
contrib-1f6db1acdfa6eb3c5396da3fb800a3d81b436fd6.tar.xz
dos2unix: updated to 5.1
Diffstat (limited to 'dos2unix/Pkgfile')
-rw-r--r--dos2unix/Pkgfile33
1 files changed, 11 insertions, 22 deletions
diff --git a/dos2unix/Pkgfile b/dos2unix/Pkgfile
index c7f8f7560..44e37888e 100644
--- a/dos2unix/Pkgfile
+++ b/dos2unix/Pkgfile
@@ -1,30 +1,19 @@
# 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
+# URL: http://dos2unix.sourceforge.net
+# Maintainer: Jose V Beneyto, sepen at crux dot nu
+# Packager: Jose V Beneyto, sepen at crux dot nu
+# Depends on:
name=dos2unix
-version=3.1-27.1
+version=5.1
release=1
-source=(ftp://rpmfind.net/linux/redhat/enterprise/5Server/en/os/SRPMS/$name-$version.src.rpm)
+source=(http://www.xs4all.nl/~waterlan/$name/$name-$version.tar.gz)
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
+ cd $name-$version
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
+ make CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE"
+ make DESTDIR=$PKG install prefix=/usr mandir=/usr/man
+ rm -rf $PKG/usr/share
}
+

Generated by cgit