mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
Made it compatible with the ArchLinux VCS PKGBUILD Guidelines
This commit is contained in:
parent
a9fb47b2f3
commit
20dd2dc832
1 changed files with 18 additions and 2 deletions
|
@ -11,8 +11,24 @@ makedepends=('git')
|
||||||
license=('custom')
|
license=('custom')
|
||||||
options=(!strip)
|
options=(!strip)
|
||||||
|
|
||||||
|
_gitroot=git://github.com/raspberrypi/firmware.git
|
||||||
|
_gitname=firmware
|
||||||
|
|
||||||
|
build() {
|
||||||
|
msg "Connecting to GIT server...."
|
||||||
|
|
||||||
|
if [[ -d "$_gitname" ]]; then
|
||||||
|
cd "$_gitname" && git pull origin
|
||||||
|
msg "The local files are updated."
|
||||||
|
else
|
||||||
|
git clone --depth 1 "$_gitroot" "$_gitname"
|
||||||
|
fi
|
||||||
|
|
||||||
|
msg "GIT checkout done or server timeout"
|
||||||
|
|
||||||
|
rm -f "${srcdir}"/firmware/boot/kernel.img
|
||||||
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
git clone --depth 1 git://github.com/raspberrypi/firmware.git
|
|
||||||
rm "${srcdir}"/firmware/boot/kernel.img
|
|
||||||
cp -R "${srcdir}"/firmware/{boot,opt} "${pkgdir}"
|
cp -R "${srcdir}"/firmware/{boot,opt} "${pkgdir}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue