support for .INSTALL file

This commit is contained in:
Natanael Copa 2008-10-30 22:57:58 +00:00
parent 821f3e6bb1
commit e15908ffc2

4
abuild
View File

@ -173,6 +173,10 @@ package_apk() {
echo "$depends" > "$db/DEPEND"
echo "$url" > "$db/WWW"
local i
if [ -n "$install" ]; then
cp "$srcdir/$install" "$dir/.INSTALL" || return 1
chmod +x "$dir/.INSTALL"
fi
for i in pre-install post-install pre-deinstall post-deinstall; do
[ -f ../$i ] && cp ../$i "$db"/
done