summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
Diffstat (limited to 'abuild.in')
-rwxr-xr-xabuild.in17
1 files changed, 5 insertions, 12 deletions
diff --git a/abuild.in b/abuild.in
index 59d622b..a56a7d3 100755
--- a/abuild.in
+++ b/abuild.in
@@ -586,15 +586,12 @@ EOF
local metafiles=".PKGINFO"
for i in $install ${triggers%%:*}; do
+ local n=${i%.*}
+ if [ "$n" != "$pkgname" ]; then
+ continue
+ fi
script=${i#$name}
- case "$script" in
- .pre-install|.post-install|.pre-upgrade|.post-upgrade|.pre-deinstall|.post-deinstall|.trigger)
- msg "Adding $script"
- ;;
- *) error "$script: Invalid install/trigger script"
- return 1
- ;;
- esac
+ msg "Adding $script"
cp "$startdir/$i" "$controldir/$script" || return 1
chmod +x "$controldir/$script"
metafiles="$metafiles $script"
@@ -849,7 +846,6 @@ update_abuildrepo() {
# predefined splitfunc doc
default_doc() {
depends="$depends_doc"
- install="$install_doc"
triggers="$triggers_doc"
pkgdesc="$pkgdesc (documentation)"
arch=${arch_doc:-"noarch"}
@@ -882,7 +878,6 @@ doc() {
# predefined splitfunc mod
default_mod() {
depends="$kernel $depends_mod"
- install="$install_mod"
for i in firmware modules; do
if [ -d "$pkgdir/lib/$i" ]; then
rm -rf "$subpkgdir/lib"
@@ -900,7 +895,6 @@ mod() {
default_dev() {
local i= j=
depends="$pkgname $depends_dev"
- install="$install_dev"
triggers="$triggers_dev"
pkgdesc="$pkgdesc (development files)"
@@ -1443,7 +1437,6 @@ fi
if [ -n "$subpkgname" ]; then
origsubpackages="$subpackages"
subpackages=
- install=
triggers=
fi
pkgdir="$pkgbasedir/$pkgname"