aboutsummaryrefslogtreecommitdiffstats
path: root/testing/acme.sh/APKBUILD
blob: 505872c302d8869824c1dca93e0326282bd695fd (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=acme.sh
pkgver=2.8.0
pkgrel=0
pkgdesc="An ACME Shell script, an acme client alternative to certbot"
url="https://github.com/Neilpang/acme.sh"
arch="noarch"
license="GPL-3.0"
depends="curl"
source="$pkgname-$pkgver.tar.gz::https://github.com/Neilpang/acme.sh/archive/$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

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

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

package() {
	cd "$builddir"
	install -dm755 "$pkgdir"/usr/share/acme.sh/deploy
	install -dm755 "$pkgdir"/usr/share/acme.sh/dnsapi
	install -dm755 "$pkgdir"/usr/bin

	install -m755 acme.sh "$pkgdir"/usr/share/acme.sh/
	install -m755 deploy/*.sh "$pkgdir"/usr/share/acme.sh/deploy/
	install -m755 dnsapi/*.sh "$pkgdir"/usr/share/acme.sh/dnsapi/

	ln -s /usr/share/acme.sh/acme.sh "$pkgdir"/usr/bin/acme.sh
}

sha512sums="99f86866f7bd1426e9a8b31dd09206685ad4aa01a3d723d366681aae4ea2087f9437496e0b3da947766931493c9d94305da1906eadc7005373327342ca94ce23  acme.sh-2.8.0.tar.gz"