summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5c01c683579cb089f37d4c65f4a080a328f1baef (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
# Maintainer: Arvid Norlander <VorpalBlade (at) users DOT noreply DOT github DOT com>
pkgname=disk-utilities-git
pkgver=r820.d29a044
pkgrel=1
pkgdesc="Collection of utilities for ripping, dumping, analysing, and modifying disk images"
arch=('x86_64')
url="https://github.com/keirf/disk-utilities"
license=('Unlicense')
depends=()
makedepends=('git' 'capsimage')
optdepends=('capsimage: Support for IPF and CT Raw files')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/keirf/disk-utilities.git')
sha256sums=('SKIP')

# Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for
# a description of each element in the source array.

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

build() {
	cd "$srcdir/${pkgname%-git}"
	caps=y make PREFIX=/usr
}

package() {
	cd "$srcdir/${pkgname%-git}"
	caps=y make DESTDIR="$pkgdir/" PREFIX=/usr install
}