aboutsummaryrefslogtreecommitdiffstats
path: root/community/ipcalc/APKBUILD
blob: 1bc7f13ee5a96cc42a20a797dd9ba2f65e4ac692 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=ipcalc
pkgver=0.41
pkgrel=0
pkgdesc="Network IP calculator"
url="http://jodies.de/ipcalc"
arch="noarch"
license="GPL"
depends="perl"
makedepends=""
install=""
subpackages=""
source="http://jodies.de/ipcalc-archive/$pkgname-$pkgver.tar.gz
fix-ipcalc-path.patch"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	return 0
}

package() {
	cd "$builddir"
	install -Dm0755 ipcalc.cgi "$pkgdir"/usr/lib/$pkgname/cgi-bin/ipcalc.cgi
	install -Dm0755 ipcalc "$pkgdir"/usr/bin/ipcalc
}

sha512sums="089eb2b9a38b07caa182ff11547a93d86aed570311fc8cd9e636c7546ab4d15acc854b9d79bbba9c797dcfbbedd1d6f4d521aec97bf613905fe5198a29c9889d  ipcalc-0.41.tar.gz
fd1a77af234d58d7d3dafc161774006a044bf317190f18bc7aa0bee75d2ef4d7ef1d0ebe63585cf4daff093af6a1c7b87bb0b39f3de7bfc918d18ec010951d14  fix-ipcalc-path.patch"