summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 053780e213fdf8141f7b7816efef83bfe3f82af4 (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
35
# Maintainer: Sematre <sematre at gmx dot de>
pkgname=mklittlefs-git
pkgver=3.0.0.r4.g943d2f7
pkgrel=2

pkgdesc="Utility for creating littlefs for upload on the ESP8266."
arch=('any')
url="https://github.com/earlephilhower/${pkgname%-git}"
license=('MIT')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
makedepends=('git')
source=("git+${url}")
md5sums=('SKIP')

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

prepare() {
	cd "${pkgname%-git}"
	git submodule update --init
}

build() {
  cd "${pkgname%-git}"
  make dist
}

package() {
  cd "${pkgname%-git}"
  install -Dm 755 "${pkgname%-git}" -t "$pkgdir/usr/bin"
  install -Dm 644 "LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
}