aboutsummaryrefslogtreecommitdiffstats
path: root/main/patch/APKBUILD
blob: cd7db078682d623f3b0ac1aa94d17a9b9de7dce1 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=patch
pkgver=2.6.1
pkgrel=1
pkgdesc="Utility to apply diffs to files"
url="http://www.gnu.org/software/patch/patch.html"
arch="x86 x86_64"
license='GPL'
depends=
source="ftp://ftp.gnu.org/gnu/patch/patch-2.6.tar.bz2"
subpackages="$pkgname-doc"

_builddir="$srcdir"/$pkgname-2.6

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--mandir=/usr/share/man
	make || return 1
}

package() {
	cd "$_builddir"
	make prefix="$pkgdir"/usr mandir="$pkgdir"/usr/share/man install
}

md5sums="5729b1430ba6c2216e0f3eb18f213c81  patch-2.6.tar.bz2"