summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 03fd654d2148a85d570160a33a85b6557770820f (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
# Maintainer: Volodymyr Zolotopupov <zvova7890@gmail.com>

pkgname=ddflash-git
pkgver=r4.ac32f67
pkgrel=1
pkgdesc='Write USB flash drives without 12309'
arch=(x86_64)
url='https://github.com/zvova7890/ddflash'
license=(MIT)
depends=(util-linux)
makedepends=(git)
source=(git+https://github.com/zvova7890/ddflash.git)
sha256sums=('SKIP')

pkgver() {
  cd ddflash
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

build() {
  cd ddflash
  make
}

package() {
  cd ddflash
  install -Dm755 "ddflash" "$pkgdir/usr/bin/ddflash"
}