summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6a9f66afc0f5ff40609312f30cea134ac087bb85 (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
# Maintainer: Vianney le Clément <vleclement AT gmail·com>
pkgname=imx-usb-loader-git
pkgver=r242.2913fd0
pkgrel=1
pkgdesc="USB loader for Freescale i.MX 51/53/6x"
arch=('i686' 'x86_64')
url="https://github.com/boundarydevices/imx_usb_loader"
license=('LGPL2.1')
depends=('libusb')
makedepends=('git')
source=("git://github.com/boundarydevices/imx_usb_loader.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/imx_usb_loader"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

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

package() {
  cd "$srcdir/imx_usb_loader"
  make install DESTDIR="$pkgdir" sysconfdir=/etc
}