41 lines
1.5 KiB
Text
41 lines
1.5 KiB
Text
|
pkgname=lxc-android
|
||
|
pkgver=1.0_git20180311
|
||
|
pkgrel=0
|
||
|
arch="noarch"
|
||
|
url="https://github.com/Halium/lxc-android"
|
||
|
license="Apache"
|
||
|
makedepends=""
|
||
|
depends="lxc"
|
||
|
_commit=f490b2cd0ca0498543089d79f15c24f3801cd8b7
|
||
|
install="$pkgname.post-install"
|
||
|
source="$pkgname-$_rev.tar.gz::https://github.com/Halium/$pkgname/archive/$_commit.tar.gz
|
||
|
pre-start.sh
|
||
|
lxc-android.init"
|
||
|
pkgdesc="Configuration for starting Halium build of Android inside LXC container"
|
||
|
|
||
|
builddir="$srcdir/$pkgname-$_commit"
|
||
|
|
||
|
package() {
|
||
|
cd "$builddir"
|
||
|
mkdir -p "$pkgdir"
|
||
|
cp -r "$builddir"/* "$pkgdir"
|
||
|
|
||
|
# Remove unneeded udev rule override
|
||
|
rm -f "$pkgdir/etc/udev/rules.d/50-firmware.rules"
|
||
|
|
||
|
# Remove systemd units
|
||
|
rm -rf "$pkgdir/etc/systemd"
|
||
|
rm -rf "$pkgdir/lib/systemd"
|
||
|
|
||
|
# Install wrapper so pre-start.sh could be provided by device package
|
||
|
mv "$pkgdir/var/lib/lxc/android/pre-start.sh" "$pkgdir/var/lib/lxc/android/pre-start.default.sh"
|
||
|
install -m755 "$srcdir/pre-start.sh" "$pkgdir/var/lib/lxc/android/pre-start.sh"
|
||
|
|
||
|
# OpenRC services
|
||
|
install -Dm755 "${srcdir}/lxc-android.init" \
|
||
|
"${pkgdir}/etc/init.d/lxc-android"
|
||
|
}
|
||
|
sha512sums="aed41538bc19fd228605bef4bf089a7bbc96964211abe5932e8685d089c32fce11fa7ba1068ad28f345895fef0d02dd388c4faef3c6abdbfbdd10ba96fcbbed0 lxc-android-.tar.gz
|
||
|
ef7081ea55a1acd5a6c5a973b4a7fc79bad4d5fdc721bc481e4ed92962a8ba9b70634e2a0a8f0afd28c14bd1fd4e1956914f68239c3dc34e41e167254252b1df pre-start.sh
|
||
|
ad373e26fb4850f887ca0be76a4c5f19115e214dcbdc315cf24e41eabfd03eebf8f19085a49c97661861b16e8005355c7fd10e86acdb4593d43250e3fed998fb lxc-android.init"
|