summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a66bf917ad58abfcc918ab764c0831aafa63649f (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
# Maintainer: willemw <willemw12@gmail.com>

pkgname=sdat2img-git
pkgver=r42.1b08432
pkgrel=1
pkgdesc="Convert sparse Android data image to filesystem image"
arch=('any')
url="https://github.com/xpirt/sdat2img"
license=('Apache')
depends=('python')
makedepends=('git')
provides=(${pkgname%-git})
conflicts=(${pkgname%-git})
source=($pkgname::git+https://github.com/xpirt/sdat2img.git)
md5sums=('SKIP')

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

package() {
  cd $pkgname
  install -Dm755 sdat2img.py "$pkgdir/usr/bin/sdat2img"
}