1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 18:25:41 +03:00
aports/community/dos2unix/APKBUILD
2023-02-11 20:15:34 +01:00

41 lines
914 B
Text

# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=dos2unix
pkgver=7.4.4
pkgrel=0
pkgdesc="Text file format converters"
url="https://waterlan.home.xs4all.nl/dos2unix.html"
arch="all"
license="BSD-2-Clause"
checkdepends="gettext-dev perl-utils"
subpackages="$pkgname-doc"
source="https://waterlan.home.xs4all.nl/dos2unix/dos2unix-$pkgver.tar.gz"
prepare() {
default_prepare
sed -e '/^LDFLAGS/s|=|+=|' \
-e '/CFLAGS_OS \+=/d' \
-e '/LDFLAGS_EXTRA \+=/d' \
-e "/^CFLAGS/s|-O2|${CFLAGS}|" \
-i Makefile
}
build() {
make ENABLE_NLS=
}
check() {
make check
}
package() {
make prefix=/usr \
docsubdir=$pkgname \
ENABLE_NLS= \
DESTDIR="$pkgdir" \
install
}
sha512sums="
e7a6b1d90bf0a32aa53b22caa1660dcf58c5874d02a45e80f4cc811cae9bd7b0cb8144301fb6808798100a057c03210925da1d8461e380dff1059f6bee086f55 dos2unix-7.4.4.tar.gz
"