Commit 6217d488 authored by Natanael Copa's avatar Natanael Copa

main/[various]: new triggers api

parent c4bc9f12
......@@ -10,7 +10,7 @@ license="GPL-2"
depends=
install="$pkgname.post-install $pkgname.post-upgrade"
subpackages="$pkgname-static"
triggers="busybox.trigger:/bin /usr/bin /sbin /usr/sbin /lib/modules/*"
triggers="busybox.trigger=/bin:/usr/bin:/sbin:/usr/sbin:/lib/modules/*"
source="http://busybox.net/downloads/$pkgname-$pkgver.tar.bz2
http://git.alpinelinux.org/cgit/bbsuid.git/snapshot/bbsuid-$_bbsuidver.tar.bz2
http://busybox.net/downloads/fixes-1.18.4/busybox-1.18.4-fuser.patch
......@@ -74,7 +74,6 @@ package() {
}
static() {
triggers=
mkdir -p "$subpkgdir"/bin
install -m755 "$_builddir"/busybox.static \
"$subpkgdir"/bin/busybox.static
......
......@@ -8,7 +8,7 @@ pkggroups="messagebus"
arch="all"
license="GPL custom"
subpackages="$pkgname-dev $pkgname-doc"
triggers="$pkgname.trigger:/etc/dbus-1/system.d"
triggers="$pkgname.trigger=/etc/dbus-1/system.d"
depends=
makedepends="expat-dev libx11-dev pkgconfig util-linux-ng-dev"
depends_dev="util-linux-ng-dev"
......
......@@ -8,7 +8,7 @@ arch="all"
license="GPL"
depends=
makedepends="glib-dev libiconv-dev gettext-dev pkgconfig"
triggers="$pkgname.trigger:/usr/share/applications"
triggers="$pkgname.trigger=/usr/share/applications"
source="http://www.freedesktop.org/software/$pkgname/releases/$pkgname-$pkgver.tar.bz2"
build ()
......
......@@ -10,7 +10,7 @@ license="GPL"
depends=
makedepends="pkgconfig freetype-dev expat-dev zlib-dev"
install=
triggers="$pkgname.trigger:/usr/share/fonts/*"
triggers="$pkgname.trigger=/usr/share/fonts/*"
subpackages="$pkgname-doc $pkgname-dev"
source="http://fontconfig.org/release/${pkgname}-${pkgver}.tar.gz"
depends_dev="freetype-dev expat-dev"
......
......@@ -10,7 +10,7 @@ depends=
depends_dev=
makedepends="tiff-dev libpng-dev glib-dev jpeg-dev gobject-introspection-dev"
install="$pkgname.pre-deinstall"
triggers="$pkgname.trigger:/usr/lib/gdk-pixbuf-2.0/*/loaders"
triggers="$pkgname.trigger=/usr/lib/gdk-pixbuf-2.0/*/loaders"
subpackages="$pkgname-dev $pkgname-doc"
source="http://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/${pkgver%.*}/gdk-pixbuf-$pkgver.tar.bz2
gdk-pixbuf-libpng15.patch"
......
......@@ -7,7 +7,7 @@ url="http://www.gtk.org"
arch="all"
license='GPL'
depends=
triggers="$pkgname.trigger:/usr/share/glib-2.0/schemas /usr/lib/gio/modules"
triggers="$pkgname.trigger=/usr/share/glib-2.0/schemas:/usr/lib/gio/modules"
makedepends="gettext-dev libiconv-dev zlib-dev bzip2-dev pkgconfig"
source="http://ftp.gnome.org/pub/gnome/sources/glib/${pkgver%.*}/glib-$pkgver.tar.bz2"
subpackages="$pkgname-doc $pkgname-dev"
......
......@@ -5,7 +5,7 @@ pkgrel=5
pkgdesc="The GTK+ Toolkit (v2)"
url="http://www.gtk.org/"
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall"
triggers="$pkgname.trigger:/usr/share/icons/*"
triggers="$pkgname.trigger=/usr/share/icons/*"
arch="all"
license="LGPL"
subpackages="$pkgname-dev $pkgname-doc"
......
......@@ -5,7 +5,7 @@ pkgrel=3
pkgdesc="The GTK+ Toolkit (v3)"
url="http://www.gtk.org/"
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall"
triggers="$pkgname.trigger:/usr/share/icons/*"
triggers="$pkgname.trigger=/usr/share/icons/*"
arch="all"
license="LGPL"
subpackages="$pkgname-dev $pkgname-doc"
......
......@@ -8,7 +8,7 @@ url="http://ftp.gnome.org/pub/gnome/sources/gvfs/${pkgver%.*}/"
arch="all"
license="GPL"
depends=
triggers="$pkgname.trigger:/usr/lib/gvfs"
triggers="$pkgname.trigger=/usr/lib/gvfs"
makedepends="dbus-glib-dev intltool fuse-dev udev-dev bluez-dev expat-dev
samba-dev libsoup-dev avahi-dev libarchive-dev gnome-disk-utility-dev
libgphoto2-dev libcdio-dev"
......@@ -51,14 +51,12 @@ _mv_files() {
fuse() {
pkgdesc="FUSE support for gvfs"
triggers=
cd "$pkgdir"
_mv_files usr/lib/gvfs/gvfs-fuse-daemon
}
smb() {
pkgdesc="Windows fileshare support for gvfs"
triggers=
cd "$pkgdir"
_mv_files \
usr/lib/gvfs/gvfsd-smb* \
......@@ -67,7 +65,6 @@ smb() {
archive() {
pkgdesc="Archiving support for gvfs"
triggers=
cd "$pkgdir"
_mv_files \
usr/lib/gvfs/gvfsd-archive* \
......@@ -76,7 +73,6 @@ archive() {
obexftp() {
pkgdesc="ObexFTP support for gvfs"
triggers=
cd "$pkgdir"
_mv_files \
usr/lib/gvfs/gvfsd-obex* \
......@@ -85,7 +81,6 @@ obexftp() {
gphoto2() {
pkgdesc="gphoto2 support for gvfs"
triggers=
cd "$pkgdir"
_mv_files \
usr/lib/gvfs/gvfs*gphoto* \
......
......@@ -12,7 +12,7 @@ makedepends=""
install=""
subpackages=""
source=""
triggers="java-common.trigger:/usr/lib/jvm"
triggers="java-common.trigger=/usr/lib/jvm"
package() {
mkdir -p "$pkgdir"/usr/bin
......
......@@ -15,7 +15,7 @@ subpackages="uclibc-dev:dev uclibc-utils:utils libthread_db"
depends_dev="linux-headers=>2.6.32"
replaces=uclibc
options="!strip"
triggers=
triggers="uclibc-utils.trigger=/lib:/usr/lib"
_snapurl="http://git.uclibc.org/uClibc/snapshot/master.tar.bz2"
_snapfile="$pkgname-$pkgver.tar.bz2"
......@@ -115,7 +115,6 @@ dev() {
utils() {
pkgdesc="uClibc utility programs"
replaces="uclibc $pkgname"
triggers="uclibc-utils.trigger:/lib /usr/lib"
mkdir -p "$subpkgdir"/usr/bin "$subpkgdir"/sbin
mv "$pkgdir"/sbin/* "$subpkgdir"/sbin/
mv "$pkgdir"/usr/bin/* "$subpkgdir"/usr/bin/
......
......@@ -10,7 +10,7 @@ subpackages="$pkgname-doc"
depends="mkfontscale"
makedepends="pkgconfig"
install=
triggers="$pkgname.trigger:/usr/share/fonts/*"
triggers="$pkgname.trigger=/usr/share/fonts/*"
source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar.bz2"
build() {
......
......@@ -10,7 +10,7 @@ subpackages="$pkgname-doc"
depends=
makedepends="pkgconfig libfontenc-dev freetype-dev xproto zlib-dev"
install=
triggers="$pkgname.trigger:/usr/share/fonts/*"
triggers="$pkgname.trigger=/usr/share/fonts/*"
source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar.bz2"
build() {
......
......@@ -5,7 +5,7 @@ pkgrel=2
pkgdesc="Tool to generate initramfs images for Alpine"
url=http://git.alpinelinux.org/cgit/mkinitfs
depends="busybox apk-tools>=2.0"
triggers="$pkgname.trigger:/usr/share/kernel/*"
triggers="$pkgname.trigger=/usr/share/kernel/*"
source="http://git.alpinelinux.org/cgit/$pkgname.git/snapshot/$pkgname-$pkgver.tar.bz2
0001-init-fix-progressbar-when-not-quiet.patch
eglibc.patch
......
......@@ -9,7 +9,7 @@ license="GPL"
makedepends="libxml2-dev glib-dev intltool"
depends=
install="$pkgname.post-deinstall"
triggers="$pkgname.trigger:/usr/share/mime"
triggers="$pkgname.trigger=/usr/share/mime"
subpackages="$pkgname-doc"
source="http://freedesktop.org/~hadess/$pkgname-$pkgver.tar.bz2"
......
......@@ -8,7 +8,7 @@ arch="x86 x86_64"
license="GPL"
makedepends="nasm perl"
depends="mtools blkid"
triggers="syslinux.trigger:/boot"
triggers="syslinux.trigger=/boot"
source="http://www.kernel.org/pub/linux/utils/boot/syslinux/${pkgver%%.*}.xx/$pkgname-$pkgver.tar.bz2
extlinux.conf
update-extlinux
......
......@@ -7,7 +7,7 @@ pkgdesc="A multi-platform MPEG, VCD/DVD, and DivX player"
url="http://www.videolan.org/vlc/"
arch="all"
license="GPL-2"
triggers="$pkgname.trigger:/usr/lib/vlc/plugins"
triggers="$pkgname.trigger=/usr/lib/vlc/plugins"
subpackages="$pkgname-dev $pkgname-doc $pkgname-xorg $pkgname-daemon"
#depends="libnotify a52dec fluidsynth zvbi libdvbpsi lirc-utils libdca hal
# libproxy sdl_image libdvdnav>=4.1.3 lua libxv libv4l libcddb smbclient
......@@ -153,7 +153,6 @@ _mv() {
xorg() {
pkgdesc="Video LAN X.org support"
triggers=
# scan for elf files that directly or indirectly depends on
# libX* libraries
cd "$pkgdir"
......@@ -172,7 +171,6 @@ xorg() {
daemon() {
pkgdesc="Support for running VLC as a daemon"
install="vlc-daemon.post-install"
triggers=
arch="noarch"
depends="vlc"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment