Commit a7c946f2 authored by Roberto Oliveira's avatar Roberto Oliveira Committed by Jakub Jirutka

community/npapi-sdk: modernize APKBUILD

parent c143273a
...@@ -6,26 +6,11 @@ pkgdesc="Netscape Plugin API (NPAPI)" ...@@ -6,26 +6,11 @@ pkgdesc="Netscape Plugin API (NPAPI)"
url="https://bitbucket.org/mgorny/npapi-sdk" url="https://bitbucket.org/mgorny/npapi-sdk"
arch="all" arch="all"
license="MPL" license="MPL"
depends="" source="https://bitbucket.org/mgorny/$pkgname/downloads/$pkgname-$pkgver.tar.bz2"
depends_dev="" builddir="$srcdir/$pkgname-$pkgver"
makedepends="$depends_dev"
install=""
subpackages=""
source="https://bitbucket.org/mgorny/npapi-sdk/downloads/npapi-sdk-$pkgver.tar.bz2"
_builddir="$srcdir"/npapi-sdk-$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() { build() {
cd "$_builddir" cd "$builddir"
./configure \ ./configure \
--build=$CBUILD \ --build=$CBUILD \
--host=$CHOST \ --host=$CHOST \
...@@ -33,16 +18,13 @@ build() { ...@@ -33,16 +18,13 @@ build() {
--sysconfdir=/etc \ --sysconfdir=/etc \
--mandir=/usr/share/man \ --mandir=/usr/share/man \
--infodir=/usr/share/info \ --infodir=/usr/share/info \
--localstatedir=/var \ --localstatedir=/var
|| return 1 make
make || return 1
} }
package() { package() {
cd "$_builddir" cd "$builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install
} }
md5sums="e81db61e206cd615cf56c4a9f301e636 npapi-sdk-0.27.2.tar.bz2"
sha256sums="01bf34bdd0fcaa546ba3d5c96f5d91f91dd117d4ed5ffe13f56bbd5aa566ae77 npapi-sdk-0.27.2.tar.bz2"
sha512sums="827d52fbc8eb601ac0e486aed267b1ca6cb8732c92f1224f4b38e039288b77d07d47c5d4cf384a3114403b85e7f086f345912f1b20b41d27785c9bb367514842 npapi-sdk-0.27.2.tar.bz2" sha512sums="827d52fbc8eb601ac0e486aed267b1ca6cb8732c92f1224f4b38e039288b77d07d47c5d4cf384a3114403b85e7f086f345912f1b20b41d27785c9bb367514842 npapi-sdk-0.27.2.tar.bz2"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment