aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/lrzsz/APKBUILD
blob: 782c7a2f9dbf77fd0d9843103049551e28429a1a (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
42
43
44
# 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"