summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2012-09-24 06:34:13 +0200
committerAllan McRae <allan@archlinux.org>2012-11-27 06:16:15 +0100
commit3232c975c6e67a01f201cc7e341f979420cd3645 (patch)
treed1b0e5defd08ca8a80d64ed7349f2dc5e3f052f9 /scripts
parent93148d0879c501235a51c0f9f5f7e457c6efd445 (diff)
downloadpacman-3232c975c6e67a01f201cc7e341f979420cd3645.tar.gz
pacman-3232c975c6e67a01f201cc7e341f979420cd3645.tar.xz
makepkg: deprecate PKGBUILDs without a package() function
The package() function has been around since pacman-3.3 and has significant advantages including limited fakeroot usage and correct repackaging. The ability to use PKGBUILDs without a package function will be removed in a future release. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makepkg.sh.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 5e8ada3a..a9d8e64c 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -2696,6 +2696,10 @@ fi
fullver=$(get_full_version)
msg "$(gettext "Making package: %s")" "$pkgbase $fullver ($(date))"
+if (( !PKGFUNC && !SPLITPKG )); then
+ warning "$(gettext "Using a %s without a %s function is deprecated.")" "$BUILDSCRIPT" "package()"
+fi
+
# if we are creating a source-only package, go no further
if (( SOURCEONLY )); then
if [[ -f $SRCPKGDEST/${pkgbase}-${fullver}${SRCEXT} ]] \