aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2020-11-19 12:03:23 +0000
committerLeo <thinkabit.ukim@gmail.com>2020-11-21 02:46:47 +0000
commit42f619918dddc768c34de4e230a4cdd1c4d7cacd (patch)
tree7c74027cecc9c2725f2b935531e94579caaa7826
parent93fca7e4a056457294285bf184124f42ad9ad151 (diff)
downloadaports-42f619918dddc768c34de4e230a4cdd1c4d7cacd.tar.gz
aports-42f619918dddc768c34de4e230a4cdd1c4d7cacd.tar.bz2
aports-42f619918dddc768c34de4e230a4cdd1c4d7cacd.tar.xz
community/raptor2: modernize
-rw-r--r--community/raptor2/APKBUILD21
1 files changed, 4 insertions, 17 deletions
diff --git a/community/raptor2/APKBUILD b/community/raptor2/APKBUILD
index 8c407cb1d6..c9bf545f1c 100644
--- a/community/raptor2/APKBUILD
+++ b/community/raptor2/APKBUILD
@@ -1,4 +1,3 @@
-# Contributor:
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=raptor2
pkgver=2.0.15
@@ -7,10 +6,8 @@ pkgdesc="RDF parser toolkit for Redland"
url="http://www.librdf.org/raptor"
arch="all"
license="GPL"
-depends=
depends_dev="curl-dev libxml2-dev libxslt-dev yajl-dev"
makedepends="$depends_dev"
-install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://download.librdf.org/source/raptor2-$pkgver.tar.gz
CVE-2017-18926.patch
@@ -20,20 +17,12 @@ source="http://download.librdf.org/source/raptor2-$pkgver.tar.gz
# 2.0.15-r2:
# - CVE-2017-18926
-_builddir="$srcdir"/raptor2-$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
+ default_prepare
update_config_sub
}
build() {
- cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -42,14 +31,12 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
- --localstatedir=/var \
- || return 1
- make || return 1
+ --localstatedir=/var
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
}
sha512sums="563dd01869eb4df8524ec12e2c0a541653874dcd834bd1eb265bc2943bb616968f624121d4688579cdce11b4f00a8ab53b7099f1a0850e256bb0a2c16ba048ee raptor2-2.0.15.tar.gz