You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
915 B
Bash

# Maintainer: Cole Deck <cd109876@gmail.com>
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"
}