summaryrefslogtreecommitdiff
path: root/libre/barebox-tools/PKGBUILD
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-03-21 02:25:47 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-03-24 17:42:52 +0100
commit6bc0941dcb4b919a515760bcc40ea4c80816781d (patch)
tree4ea9da584f1cb7acd74164dbf34f283383c934c4 /libre/barebox-tools/PKGBUILD
parent6cd25efea95531c4e20148866e22d258d327fe1a (diff)
downloadabslibre-6bc0941dcb4b919a515760bcc40ea4c80816781d.tar.gz
abslibre-6bc0941dcb4b919a515760bcc40ea4c80816781d.tar.bz2
abslibre-6bc0941dcb4b919a515760bcc40ea4c80816781d.zip
barebox-tools: fix broken checksum line and move to libre
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'libre/barebox-tools/PKGBUILD')
-rw-r--r--libre/barebox-tools/PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/libre/barebox-tools/PKGBUILD b/libre/barebox-tools/PKGBUILD
new file mode 100644
index 000000000..9a9b4eecb
--- /dev/null
+++ b/libre/barebox-tools/PKGBUILD
@@ -0,0 +1,30 @@
+# Barebox: am335x
+# Contributor: Denis Carikli <GNUtoo@cyberdimension.org>
+
+_pkgname=barebox
+pkgname=barebox-tools
+pkgver=2019.02.0
+pkgrel=1
+pkgdesc='Barebox bootloader utility tools'
+arch=('armv7h' 'i686' 'armv7h')
+makedepends=('lzop')
+url="http://barebox.org/"
+license=('GPL2')
+source=("http://barebox.org/download/${_pkgname}-${pkgver}.tar.bz2")
+sha512sums=('648827efeec7b2591eaf43daf98368be1902e3f8157c8acd88b9f103078e9989bb158d81eda013e360d6dfdfbb3c7aae0e334fce957663b72ca46f419c33e981')
+
+build() {
+ cd "${_pkgname}-${pkgver}"
+ unset CFLAGS CXXFLAGS LDFLAGS
+ yes '' | make config
+ make scripts
+}
+
+package() {
+ cd "${_pkgname}-${pkgver}"
+ install -d "${pkgdir}/usr/bin/"
+ install -m755 -t "${pkgdir}/usr/bin/" "scripts/bareboxenv"
+ for file in kernel-install mkimage netconsole ; do
+ install -m755 "scripts/${file}" "${pkgdir}/usr/bin/barebox-${file}"
+ done
+}