aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dos2unix/APKBUILD
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2016-02-15 17:50:40 +0100
committerSören Tempel <soeren+git@soeren-tempel.net>2016-02-15 17:50:40 +0100
commit352bcd34979a903853263bf578dc00fd8ffcc93d (patch)
tree96ec13094747968200f2c151a2bf9d817dcef55a /testing/dos2unix/APKBUILD
parenta861fb9faf7dde1ca4c9ad2915e1c536ddb3a3a4 (diff)
downloadaports-352bcd34979a903853263bf578dc00fd8ffcc93d.tar.bz2
aports-352bcd34979a903853263bf578dc00fd8ffcc93d.tar.xz
testing/dos2unix: new aport
Diffstat (limited to 'testing/dos2unix/APKBUILD')
-rw-r--r--testing/dos2unix/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/dos2unix/APKBUILD b/testing/dos2unix/APKBUILD
new file mode 100644
index 0000000000..2e717a2615
--- /dev/null
+++ b/testing/dos2unix/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
+# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
+pkgname=dos2unix
+pkgver=7.3.3
+pkgrel=0
+pkgdesc="Text file format converters"
+url="http://waterlan.home.xs4all.nl/dos2unix.html"
+arch="all"
+license="BSD"
+depends=""
+depends_dev=""
+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 || return 1
+}
+
+build() {
+ make ENABLE_NLS= -C "$_builddir" || return 1
+}
+
+package() {
+ make prefix=/usr \
+ docsubdir=$pkgname \
+ ENABLE_NLS= \
+ DESTDIR="$pkgdir" \
+ -C "$_builddir" install || return 1
+}
+
+md5sums="e06d7b8bf4b9b86d7ff61f02d514e95f dos2unix-7.3.3.tar.gz"
+sha256sums="5c910aea2eae96663c67e87627998c4fe3cded403be5819b4c190e56c82ff0fb dos2unix-7.3.3.tar.gz"
+sha512sums="52218ea17cc63a4b41e1bd12f200dda31e2be65167ca9c913391640c118d7122348aa2e5aec934ee17c8ea77a04cb89a1a572865645a77f6875207295c10e7af dos2unix-7.3.3.tar.gz"