mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
*/*: ensure triggers could handle files
Supersedes: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/57032 Ref: https://gitlab.alpinelinux.org/alpine/apk-tools/-/merge_requests/131
This commit is contained in:
parent
f617bce2de
commit
1997195d08
10 changed files with 11 additions and 10 deletions
|
@ -2,7 +2,7 @@
|
|||
# Maintainer: team/gnome <newbyte@postmarketos.org>
|
||||
pkgname=gtk+3.0
|
||||
pkgver=3.24.49
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="The GTK+ Toolkit (v3)"
|
||||
url="https://www.gtk.org/"
|
||||
install="$pkgname.post-deinstall"
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
for i in "$@"; do
|
||||
if ! [ -e "$i" ]; then
|
||||
continue
|
||||
fi
|
||||
[ -d "$i" ] || continue
|
||||
gtk-update-icon-cache -q -t -f "$i"
|
||||
rmdir "$1" 2>/dev/null || :
|
||||
done
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
||||
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
||||
pkgname=kernel-hooks
|
||||
pkgver=0.2
|
||||
pkgrel=1
|
||||
pkgver=0.3
|
||||
pkgrel=0
|
||||
pkgdesc="Run user-provided hooks when /lib/modules/* is updated"
|
||||
url="https://gitlab.alpinelinux.org/alpine/aports/"
|
||||
arch="noarch"
|
||||
|
|
|
@ -7,6 +7,7 @@ HOOKS_DIR='/etc/kernel-hooks.d'
|
|||
|
||||
flavors_vers=
|
||||
for path in "$@"; do
|
||||
[ -f "$path" ] && continue
|
||||
name="${path##*/}"
|
||||
|
||||
case "$name" in
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||
pkgname=kmod
|
||||
pkgver=34.2
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="Linux kernel module management utilities"
|
||||
url="http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary"
|
||||
arch="all"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
for i in "$@"; do
|
||||
if [ -e "$i"/modules.order ]; then
|
||||
/sbin/depmod "${i#*/lib/modules/}"
|
||||
else
|
||||
elif [ -d "$i" ]; then
|
||||
#clean up on uninstall
|
||||
rm -f "$i"/modules.alias \
|
||||
"$i"/modules.builtin.alias.bin \
|
||||
|
|
|
@ -3,7 +3,7 @@ pkgname=mkinitfs
|
|||
pkgver=3.12.0
|
||||
# shellcheck disable=SC2034 # used for git versions, keep around for next time
|
||||
_ver=${pkgver%_git*}
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="Tool to generate initramfs images for Alpine"
|
||||
url="https://gitlab.alpinelinux.org/alpine/mkinitfs"
|
||||
arch="all"
|
||||
|
|
|
@ -8,6 +8,7 @@ if [ -f "$CONFIG" ]; then
|
|||
fi
|
||||
|
||||
for i in "$@"; do
|
||||
[ -f "$i" ] && continue
|
||||
# get last element in path
|
||||
abi_release=${i##*/}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
||||
pkgname=postgresql-common
|
||||
pkgver=1.2
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Common files for PostgreSQL"
|
||||
url="https://www.postgresql.org/"
|
||||
arch="noarch"
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
# Sort dirs in reverse order to prefer a higher version if the user installed
|
||||
# multiple versions at once.
|
||||
for dir in $(printf '%s\n' "$@" | sort -r); do
|
||||
[ -f "$dir" ] && continue
|
||||
pgver=${dir#*postgresql}
|
||||
expr "$pgver" : '[0-9]*$' >/dev/null || continue
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue