aboutsummaryrefslogtreecommitdiffstats
path: root/community/caja-extensions
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-09-22 12:59:24 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-09-25 07:11:21 +0000
commitec240673089ae8b56315514c7d16661cb22c730c (patch)
tree79bff24e0dbfa398475827c9789f829098a57358 /community/caja-extensions
parent9b1083b2fc2494be559666cb209c8788445d2f9f (diff)
downloadaports-ec240673089ae8b56315514c7d16661cb22c730c.tar.bz2
aports-ec240673089ae8b56315514c7d16661cb22c730c.tar.xz
community/caja-extensions: modernize APKBUILD, added check()
Diffstat (limited to 'community/caja-extensions')
-rw-r--r--community/caja-extensions/APKBUILD34
1 files changed, 13 insertions, 21 deletions
diff --git a/community/caja-extensions/APKBUILD b/community/caja-extensions/APKBUILD
index 165a370ddf..266129fa43 100644
--- a/community/caja-extensions/APKBUILD
+++ b/community/caja-extensions/APKBUILD
@@ -2,32 +2,20 @@
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=caja-extensions
pkgver=1.18.1
-pkgrel=0
+pkgrel=1
pkgdesc="Set of extensions for Caja file manager"
url="https://github.com/mate-desktop/caja-extensions"
arch="all"
license="GPL2"
depends="caja"
-depends_dev=""
-makedepends="$depends_dev glib-dev gtk+2.0-dev caja-dev dconf-dev
+makedepends="glib-dev gtk+3.0-dev caja-dev dconf-dev
mate-desktop-dev"
-install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://pub.mate-desktop.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.xz"
-
-_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
-}
+builddir="$srcdir/$pkgname-$pkgver"
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -35,14 +23,18 @@ build() {
--sysconfdir=/etc \
--enable-sendto \
--enable-wallpaper \
- --enable-open-terminal \
- || return 1
- make || return 1
+ --enable-open-terminal
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
- make DESTDIR="${pkgdir}" install || return 1
+ cd "$builddir"
+ make DESTDIR="${pkgdir}" install
}
sha512sums="177f8c1f95892945678e7717c13436a79e2021a940db166cbafb9c2a78a1f1c671ae79c9dbf96f51f94fdadeff13a0c4995f6c2cbbd2c304566549e862d2ccae caja-extensions-1.18.1.tar.xz"