This repository was archived by the owner on Oct 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathpkgtools.install
More file actions
39 lines (36 loc) · 1.36 KB
/
pkgtools.install
File metadata and controls
39 lines (36 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
is_update_from() {
res="$(vercmp $1 $2)"
case "$res" in
'-1'|'0') return 0;;
'1') return 1;;
esac
}
## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
if is_update_from $2 15-1; then
echo " - pkgtools now uses \$XDG_CONFIG_HOME for all user-specific configuration."
echo " run «mv ~/.pkgtools \"\$XDG_CONFIG_HOME/pkgtools\"»"
fi
if is_update_from $2 18-1; then
echo " - newpkg has been rewritten to be completely modular. See here for more info: https://github.com/Daenyth/pkgtools/commit/2d37197"
fi
if is_update_from $2 19-1; then
echo " - This version of pkgtools contains a new tool called 'maintpkg'"
echo " It sets the Maintainer in a PKGBUILD to your PACKAGER while preserving old Contributors"
fi
if is_update_from $2 22-1; then
echo " - This is the largest release in a long time. This updates all Python scripts to Python 3."
fi
if is_update_from $2 24-1; then
echo " - This update removes the gem2arch and pkgfile scripts. This update also updates pkgconflict to work with pkgfile from [extra] and other minor fixes."
echo " - You may want to remove /var/cache/pkgtools/lists, which is no longer used."
fi
}
## arg 1: the old package version
post_remove() {
cat << _EOM
- You may want to clean /var/cache/pkgtools/lists
_EOM
}
# vim:set ts=2 sw=2 et filetype=sh: