summaryrefslogtreecommitdiffstats
path: root/main/sg3_utils/APKBUILD
blob: 236a03d79ac2b52c184604a09186511a9498cd59 (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
36
37
38
39
40
41
42
43
44
45
# Contributor: Carlo Landmeter 
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sg3_utils
pkgver=1.37
pkgrel=0
pkgdesc="Generic SCSI utilities"
url="http://sg.danny.cz/sg/sg3_utils.html"
arch="all"
license="GPL"
depends=
makedepends=
install=
subpackages="$pkgname-dev $pkgname-doc"
source="http://sg.danny.cz/sg/p/$pkgname-$pkgver.tgz"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	# apply patches here
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
}

md5sums="9d557e8db4d1ff306a1f9415b7a57c22  sg3_utils-1.37.tgz"
sha256sums="d34acaa353b525f77e1c9561c683e3cf7695e09eeeba611220558193db486c33  sg3_utils-1.37.tgz"
sha512sums="e38691e76ef81714ac2c2b51273bdec33a1c4d4111c59ee77f0637d0555e3f375fc98d9fb18bd0cc98fd17b208369516df832f4a9d1aa14ef171d672b83f7842  sg3_utils-1.37.tgz"