aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-10 21:01:49 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2018-02-16 17:17:28 +0000
commite2bbdf65e003295ed769605b6d28c51ca80581f2 (patch)
tree7a6657a1103890a32e782c7821d274ff43459796
parentb25bff96562e1d427843e29f8de640862cac2681 (diff)
downloadaports-e2bbdf65e003295ed769605b6d28c51ca80581f2.tar.gz
aports-e2bbdf65e003295ed769605b6d28c51ca80581f2.tar.bz2
aports-e2bbdf65e003295ed769605b6d28c51ca80581f2.tar.xz
main/libcanberra: modernise, mark no tests, fix license
-rw-r--r--main/libcanberra/APKBUILD49
1 files changed, 24 insertions, 25 deletions
diff --git a/main/libcanberra/APKBUILD b/main/libcanberra/APKBUILD
index e93739d68b..adfd0a42b8 100644
--- a/main/libcanberra/APKBUILD
+++ b/main/libcanberra/APKBUILD
@@ -2,51 +2,50 @@
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=libcanberra
pkgver=0.30
-pkgrel=1
-pkgdesc="simple audio library for GTK applications"
+pkgrel=2
+pkgdesc="Simple audio library for GTK applications"
url="http://0pointer.de/lennart/projects/libcanberra/"
-license="LGPL"
+arch="all"
+options="!check" # No test suite.
+license="LGPL-2.1+"
depends=
makedepends="gtk+-dev libogg-dev libvorbis-dev alsa-lib-dev libtool gtk+3.0-dev"
install=
subpackages="$pkgname-dev $pkgname-doc $pkgname-gtk2 $pkgname-gtk3"
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.xz"
-arch="all"
depends_dev="$makedepends"
-_builddir="$srcdir"/$pkgname-$pkgver
-
prepare() {
- cd "$_builddir"
- update_config_sub || return 1
+ cd "$builddir"
+ update_config_sub
+ default_prepare
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --infodir=/usr/share/info \
- || return 1
- make || return 1
+ --infodir=/usr/share/info
+ make
}
package() {
- cd "$_builddir"
- make -j1 DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make -j1 DESTDIR="$pkgdir" install
}
gtk2() {
pkgdesc="Gtk+ 2.x Bindings for libcanberra"
- mkdir -p "$subpkgdir"/usr/lib || return 1
+ mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libcanberra-gtk.so.* \
- "$subpkgdir"/usr/lib/ || return 1
+ "$subpkgdir"/usr/lib/
mv "$pkgdir"/usr/lib/gtk-2.0 \
- "$subpkgdir"/usr/lib/ || return 1
+ "$subpkgdir"/usr/lib/
}
gtk3() {
@@ -55,21 +54,21 @@ gtk3() {
"$subpkgdir"/usr/bin \
"$subpkgdir"/usr/share/gnome/autostart \
"$subpkgdir"/usr/share/gnome/shutdown \
- "$subpkgdir"/usr/share/gdm/autostart/LoginWindow || return 1
+ "$subpkgdir"/usr/share/gdm/autostart/LoginWindow
mv "$pkgdir"/usr/lib/gtk-3.0 \
- "$subpkgdir"/usr/lib || return 1
+ "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libcanberra-gtk3.so.* \
- "$subpkgdir"/usr/lib || return 1
+ "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/bin/canberra-gtk-play \
- "$subpkgdir"/usr/bin/ || return 1
+ "$subpkgdir"/usr/bin/
mv "$pkgdir"/usr/share/gnome/autostart/libcanberra-login-sound.desktop \
- "$subpkgdir"/usr/share/gnome/autostart || return 1
+ "$subpkgdir"/usr/share/gnome/autostart
mv "$pkgdir"/usr/share/gnome/shutdown/libcanberra-logout-sound.sh \
- "$subpkgdir"/usr/share/gnome/autostart/ || return 1
+ "$subpkgdir"/usr/share/gnome/autostart/
mv "$pkgdir"/usr/share/gdm/autostart/LoginWindow/libcanberra-ready-sound.desktop \
- "$subpkgdir"/usr/share/gdm/autostart/LoginWindow/ || return 1
+ "$subpkgdir"/usr/share/gdm/autostart/LoginWindow/
mv "$pkgdir"/usr/lib/gnome-settings-daemon-3.0/gtk-modules/canberra-gtk-module.desktop \
- "$subpkgdir"/usr/lib/gnome-settings-daemon-3.0/gtk-modules/ || return 1
+ "$subpkgdir"/usr/lib/gnome-settings-daemon-3.0/gtk-modules/
}
sha512sums="f7543582122256826cd01d0f5673e1e58d979941a93906400182305463d6166855cb51f35c56d807a56dc20b7a64f7ce4391368d24990c1b70782a7d0b4429c2 libcanberra-0.30.tar.xz"