diff options
Diffstat (limited to 'community/dos2unix')
-rw-r--r-- | community/dos2unix/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/community/dos2unix/APKBUILD b/community/dos2unix/APKBUILD new file mode 100644 index 0000000000..5bbaba2915 --- /dev/null +++ b/community/dos2unix/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> +# Maintainer: André Klitzing <aklitzing@gmail.com> +pkgname=dos2unix +pkgver=7.3.5 +pkgrel=0 +pkgdesc="Text file format converters" +url="http://waterlan.home.xs4all.nl/dos2unix.html" +arch="all" +license="BSD" +depends="" +makedepends="" +install="" +subpackages="$pkgname-doc" +source="http://waterlan.home.xs4all.nl/${pkgname}/${pkgname}-${pkgver}.tar.gz" + +builddir="$srcdir"/$pkgname-$pkgver +prepare() { + cd "$builddir" + sed -e '/^LDFLAGS/s|=|+=|' \ + -e '/CFLAGS_OS \+=/d' \ + -e '/LDFLAGS_EXTRA \+=/d' \ + -e "/^CFLAGS/s|-O2|${CFLAGS}|" \ + -i Makefile +} + +build() { + make ENABLE_NLS= -C "$builddir" +} + +package() { + make prefix=/usr \ + docsubdir=$pkgname \ + ENABLE_NLS= \ + DESTDIR="$pkgdir" \ + -C "$builddir" install +} + +sha512sums="beafefa715d894ec51bd808b18485bcf413f93b888203486e659f7e30b922b32b2f1da2305ef9ae85e54085ba3819bd512957bb872b529fe4728000cec7d3e58 dos2unix-7.3.5.tar.gz" |