summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5808563d164619fe3669ecefce73583618b27e8c (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
30
31
32
33
34
# Maintainer: yjun <jerrysteve1101@gmail.com>

pkgname=sunxi-tools-f1c100s-spiflash-git
_pkgname=${pkgname%-git}
pkgver=v1.1.r441.g11a9d20
pkgrel=1
pkgdesc="tools to help hacking Allwinner SoC devices"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/Icenowy/sunxi-tools/tree/f1c100s-spiflash"
license=('GPL')
depends=('libusb' 'zlib')
makedepends=('git')
conflicts=('sunxi-tools')
source=("${_pkgname}::git+https://github.com/Icenowy/sunxi-tools.git#branch=f1c100s-spiflash")
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd ${_pkgname}
  make
  make misc
}

package() {
  cd ${_pkgname}
  PREFIX="$pkgdir/usr" make install
  PREFIX="$pkgdir/usr" make install-misc
}

# vim: set sw=2 ts=2 et: