summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bb0d548fe9c414a8c6dc0e5ecffadf59675e2329 (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
# Maintainer: Tony Lambiris <tony@libpcap.net>

pkgname=vhdtool-git
pkgver=r24.cafd9bf
pkgrel=3
pkgdesc="Manipulate VHD (Virtual Hard Disk) images the open-source way."
arch=(x86_64)
url="https://github.com/andreiw/vhdtool"
license=(GPL)
depends=(glibc)
makedepends=(git)
source=("$pkgname::git+https://github.com/andreiw/vhdtool")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"

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

build() {
  cd "$srcdir/$pkgname"

  make
}

package() {
  cd "$srcdir/$pkgname"

  install -d -m755 "$pkgdir/usr/bin"
  install -Dm755 vhdtool "$pkgdir/usr/bin"
}