aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dos2unix/APKBUILD
blob: 2e717a2615ae773857cb1cec468777a97a75c77c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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"