aboutsummaryrefslogblamecommitdiffstats
path: root/unmaintained/lrzsz/APKBUILD
blob: 782c7a2f9dbf77fd0d9843103049551e28429a1a (plain) (tree)
























                                                                        


                                                          











                                              
                                          


                                                                
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=lrzsz
pkgver=0.12.20
pkgrel=0
pkgdesc="xmodem, ymodem and zmodem file transfer protocols"
url="http://www.ohse.de/uwe/software/lrzsz.html"
arch="all"
license="GPL2"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://www.ohse.de/uwe/releases/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done

	# make install tries to remove stuff from /usr/bin
	sed -i -e '/rm -f $(bindir)/d' src/Makefile.in
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--mandir=/usr/share/man \
		--program-transform-name=s/l//
	make -j1
}

package() {
	cd "$_builddir"
	make -j1 DESTDIR="$pkgdir" install
}

md5sums="b5ce6a74abc9b9eb2af94dffdfd372a4  lrzsz-0.12.20.tar.gz"