# Maintainer: Cole Deck pkgname=bedrocklinux-installer-git _dirname=bedrocklinux-userland pkgver=0.7 pkgrel=1 pkgdesc="Bedrock Linux hijack/update script" arch=('x86_64' 'armv7h' 'aarch64') url="https://github.com/bedrocklinux/bedrocklinux-userland" license=('GPLv2') depends=() source=("git+https://github.com/bedrocklinux/bedrocklinux-userland.git") install=bedrocklinux-installer-git.install makedepends=('make' 'gcc' 'git' 'autoconf' 'pkg-config' 'meson' 'ninja' 'fakeroot' 'gzip' 'libtool') sha1sums=('SKIP') pkgver() { cd "${srcdir}/${_dirname}" echo $(head -n 1 ReleaseNotes.md | cut -c2-7) } build() { cd "${srcdir}/${_dirname}" git checkout 0.7 make SKIPSIGN=true } package() { cd "${srcdir}/${_dirname}" #make DESTDIR="$pkgdir/" install install -D -m755 "bedrock-linux-$(head -n 1 ReleaseNotes.md | cut -c3-7)-$(uname -m).sh" "${pkgdir}/usr/bin/bedrock-linux.sh" }