busybox: added self contained post install

This commit is contained in:
martell
2014-10-19 19:47:58 +01:00
parent d9dd575190
commit f02239ab02
2 changed files with 13 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ url="http://gondor.apana.org.au/~herbert/dash/"
license=('GPL2')
depends=('msys2-base' 'msys2-runtime')
groups=('base')
install=busybox.install
source=("http://busybox.net/downloads/${pkgname}-${pkgver}.tar.bz2"
"busybox-cygwin.patch"
"fixsyscalls.patch"

12
busybox/busybox.install Normal file
View File

@@ -0,0 +1,12 @@
post_install() {
usr/bin/busybox mkdir -p /usr/busybox
usr/bin/busybox --install -s /usr/busybox
}
post_upgrade() {
post_install
}
pre_remove() {
usr/bin/busybox rm -rf /usr/busybox
}