diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-07-06 19:58:29 +0000 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-07-07 01:57:43 +0200 |
commit | cbd381447c59e64d0fb4d5dd3bb54e26a8c6b6d4 (patch) | |
tree | 76c361dc6eae24cfd94cd3756692211c724af809 /community/easy-rsa | |
parent | aa87c1e528f87cadd796328696daa7f5f7741940 (diff) | |
download | aports-cbd381447c59e64d0fb4d5dd3bb54e26a8c6b6d4.tar.bz2 aports-cbd381447c59e64d0fb4d5dd3bb54e26a8c6b6d4.tar.xz |
community/easy-rsa: modernize abuild
Diffstat (limited to 'community/easy-rsa')
-rw-r--r-- | community/easy-rsa/APKBUILD | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/community/easy-rsa/APKBUILD b/community/easy-rsa/APKBUILD index 59ddcd2a35..47d9b92a19 100644 --- a/community/easy-rsa/APKBUILD +++ b/community/easy-rsa/APKBUILD @@ -7,37 +7,16 @@ url="https://github.com/OpenVPN/easy-rsa" arch="noarch" license="GPL2" depends="openssl" -depends_dev="" -makedepends="$depends_dev" -install="" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/OpenVPN/easy-rsa/archive/$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 -} - -build() { - cd "$_builddir" - return 0 -} +builddir="$srcdir/$pkgname-$pkgver" package() { - cd "$_builddir" + cd "$builddir" mkdir -p "$pkgdir"/usr/share/easy-rsa \ "$pkgdir"/usr/share/doc/easy-rsa cp -rp easyrsa3/* "$pkgdir"/usr/share/easy-rsa/ \ - && cp -rp doc/* "$pkgdir"/usr/share/doc/easy-rsa/ \ - || return 1 + && cp -rp doc/* "$pkgdir"/usr/share/doc/easy-rsa/ } -md5sums="aa58cbecda1d5ed6df6bb65e990e42a1 easy-rsa-3.0.1.tar.gz" -sha256sums="a1fff75a27ea7da3f37fbfed715633f55b9ca25f5b14cac38e525c5c995e68ae easy-rsa-3.0.1.tar.gz" sha512sums="818e757041a035c2983951a688b111cb2e869f6e34830248f3643049257dd48ec58021b16afbac007d19838cc10eee9226500bcd0ed023de308bb8a210a9840c easy-rsa-3.0.1.tar.gz" |