aboutsummaryrefslogtreecommitdiffstats
path: root/main/sg3_utils/APKBUILD
blob: 5f96ad2fa8ba98390a16b032e1a304e16e2176e5 (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
# Contributor: Carlo Landmeter 
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sg3_utils
pkgver=1.38
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"
	# 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="e532a3d6648c422347f6d84cac469263  sg3_utils-1.38.tgz"
sha256sums="d7d3a8b4b698e2c17c8f16bb876946720260d4d659d471c5d7c12ce652ba38f1  sg3_utils-1.38.tgz"
sha512sums="8427fa930704b0b9ae7d695d8d2029154040d2af92c9f6d17da898f2f9dde5014480c9418e07964c0c75221fa8c23bed240c437a08c8b2d7ec3dfbe880f4ff4c  sg3_utils-1.38.tgz"