summaryrefslogtreecommitdiff
path: root/pcr/imx_usb_loader-git/PKGBUILD
blob: 5f9101e5875461446072f34defeb22afee1184d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright (C) 2020 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the CC0 1.0 License.
# Maintainers: Parabola hackers <dev@lists.parabola.nu>

_pkgname=imx_usb_loader
pkgname=${_pkgname}-git
pkgver=0.1
pkgrel=3
pkgdesc="Tool to communicate with I.MX bootroms to execute code"
arch=('armv7h' 'i686' 'x86_64')
url='https://github.com/boundarydevices/imx_usb_loader'
license=('LGPL')
depends=('libusb')
makedepends=('git')
_commit=('30b43d69770cd69e84c045dc9dcabb1f3e9d975a')
source=("git://github.com/boundarydevices/imx_usb_loader.git#commit=${_commit}")
sha256sums=('SKIP')

build() {
  cd "$srcdir/${_pkgname}"
  make sysconfdir=/etc
}

package(){
  cd "$srcdir/${_pkgname}"
  make DESTDIR="$pkgdir" sysconfdir=/etc install
  install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}