aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-09-02 14:32:06 +0000
committerTimo Teräs <timo.teras@iki.fi>2017-09-02 22:17:26 +0000
commitef3a1620e52dc7fdf76e3955b4e1afff4df89df4 (patch)
treed17c7409c984e5ce20db92cebd3d8bf45c8705f6
parent2feb6911d5ed59f78d396f534c25e9851d0ea183 (diff)
downloadaports-ef3a1620e52dc7fdf76e3955b4e1afff4df89df4.tar.bz2
aports-ef3a1620e52dc7fdf76e3955b4e1afff4df89df4.tar.xz
main/libsigc++: modernize APKBUILD and add check
-rw-r--r--main/libsigc++/APKBUILD21
1 files changed, 11 insertions, 10 deletions
diff --git a/main/libsigc++/APKBUILD b/main/libsigc++/APKBUILD
index b3aad30de6..5468d0ab11 100644
--- a/main/libsigc++/APKBUILD
+++ b/main/libsigc++/APKBUILD
@@ -1,12 +1,11 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libsigc++
pkgver=2.10.0
-pkgrel=0
+pkgrel=1
pkgdesc="type-safe Signal Framework for C++"
url="http://libsigc.sourceforge.net/"
arch="all"
license="LGPL"
-depends=
makedepends="m4 perl tar"
subpackages="$pkgname-dev $pkgname-doc"
source="http://ftp.gnome.org/pub/GNOME/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz"
@@ -17,23 +16,25 @@ build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
- --prefix=/usr \
- || return 1
- make || return 1
+ --prefix=/usr
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
}
doc() {
- default_doc || return 1
+ default_doc
- mv "$pkgdir"/usr/share/devhelp "$subpkgdir"/usr/share || return 1
+ mv "$pkgdir"/usr/share/devhelp "$subpkgdir"/usr/share
rmdir "$pkgdir"/usr/share
}
-md5sums="70bcbde2c900e4925d6ef4bf50954195 libsigc++-2.10.0.tar.xz"
-sha256sums="f843d6346260bfcb4426259e314512b99e296e8ca241d771d21ac64f28298d81 libsigc++-2.10.0.tar.xz"
sha512sums="5b96df21d6bd6ba41520c7219e77695a86aabc60b7259262c7a9f4b8475ce0e2fd8dc37bcf7c17e24e818ff28c262d682b964c83e215b51bdbe000f3f58794ae libsigc++-2.10.0.tar.xz"