community/certbot: modernize

This commit is contained in:
Leo 2019-06-06 07:09:58 -03:00
parent 5e1e4689a1
commit b2aaa90db4

View File

@ -27,10 +27,8 @@ makedepends="python3-dev"
replaces="letsencrypt"
subpackages="py3-acme:acme $pkgname-nginx $pkgname-apache $pkgname-postfix"
source="certbot-$pkgver.tar.gz::https://github.com/certbot/certbot/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$builddir"
local i
for i in . $subpackages; do
cd "$builddir"/${i##*:}
@ -39,7 +37,6 @@ build() {
}
check() {
cd "$builddir"
local i
for i in . $subpackages; do
cd "$builddir"/${i##*:}
@ -48,7 +45,6 @@ check() {
}
package() {
cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}