aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Daudt <kdaudt@alpinelinux.org>2021-01-02 16:59:22 +0000
committerKevin Daudt <kdaudt@alpinelinux.org>2021-01-02 18:51:24 +0000
commit9915bfe10da3a1f2963e0b86e3b7295841d34805 (patch)
tree3463fa50175f97ca480cb38a16dc32b68d932f4b
parent1560a167f88009aad1bb6387b4b5d2736af18df7 (diff)
downloadaports-9915bfe10da3a1f2963e0b86e3b7295841d34805.tar.gz
aports-9915bfe10da3a1f2963e0b86e3b7295841d34805.tar.bz2
aports-9915bfe10da3a1f2963e0b86e3b7295841d34805.tar.xz
community/gtk+3.0: remove demo files from main package
The `-demo` subpackage installed the demo file from the $builddir, but gtk3 also installed those files in the main pacakge, resulting in those files living in both packages. Use `amove` to move these files from the main package into the subpackage, instead of installing them from the builddir. See #12264
-rw-r--r--main/gtk+3.0/APKBUILD26
1 files changed, 11 insertions, 15 deletions
diff --git a/main/gtk+3.0/APKBUILD b/main/gtk+3.0/APKBUILD
index a633179f8d..5f3e0e35f8 100644
--- a/main/gtk+3.0/APKBUILD
+++ b/main/gtk+3.0/APKBUILD
@@ -3,7 +3,7 @@
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gtk+3.0
pkgver=3.24.13
-pkgrel=0
+pkgrel=1
pkgdesc="The GTK+ Toolkit (v3)"
url="https://www.gtk.org/"
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall"
@@ -102,20 +102,16 @@ package() {
demo() {
pkgdesc="$pkgdesc (demonstration application)"
- install -Dm755 "$pkgdir"/usr/bin/gtk3-demo \
- "$pkgdir"/usr/bin/gtk3-widget-factory \
- "$pkgdir"/usr/bin/gtk3-demo-application \
- -t "$subpkgdir"/usr/bin
- install -Dm644 "$pkgdir"/usr/share/gtk-3.0/gtkbuilder.rng \
- -t "$subpkgdir"/usr/share/gtk-3.0
- install -Dm644 "$pkgdir"/usr/share/glib-2.0/schemas/org.gtk.Demo.gschema.xml \
- "$pkgdir"/usr/share/glib-2.0/schemas/org.gtk.exampleapp.gschema.xml \
- -t "$subpkgdir"/usr/share/glib-2.0/schemas
- install -Dm644 "$pkgdir"/usr/share/applications/gtk3-widget-factory.desktop \
- "$pkgdir"/usr/share/applications/gtk3-demo.desktop \
- -t "$subpkgdir"/usr/share/applications
- mkdir -p "$subpkgdir"/usr/share
- mv "$pkgdir"/usr/share/icons "$subpkgdir"/usr/share
+ amove usr/bin/gtk3-demo \
+ usr/bin/gtk3-widget-factory \
+ usr/bin/gtk3-demo-application
+
+ amove usr/share/gtk-3.0/gtkbuilder.rng \
+ usr/share/glib-2.0/schemas/org.gtk.Demo.gschema.xml \
+ usr/share/applications/gtk3-widget-factory.desktop \
+ usr/share/applications/gtk3-demo.desktop
+
+ amove usr/share/icons
}
dev() {