# Maintainer: Jesus E. pkgname=tofrodos pkgver=1.7.13 pkgrel=1 pkgdesc="Convert ASCII files between the MS-DOS/Windows format and the UNIX format" arch=('i686' 'x86_64') url='https://www.thefreecountry.com/tofrodos/index.shtml' license=('GPL-2') depends=('glibc') source=("https://fossies.org/linux/misc/${pkgname}-${pkgver}.tar.gz") sha512sums=('629804caf20ac7bfc6f47637b7bc575766f032e324142df3be14347f050c61d969e023f8fed0ce5c87d8fc57b25c60c4e0214600738c5079d5e731045dae4843') build() { export CFLAGS+=" -c -Wall" cd "$pkgname/src" make -e } package() { cd "$pkgname/src" install -d "$pkgdir"/usr/{bin,share/man/man1} make BINDIR="$pkgdir/usr/bin" MANDIR="$pkgdir/usr/share/man/man1" install install -Dm644 $srcdir/$pkgname/COPYING -t "${pkgdir}/usr/share/licenses/$pkgname" }