aboutsummaryrefslogtreecommitdiffstats
path: root/main/mtx/APKBUILD
blob: 93eae0f869f3925db4867402f9ef1a1c1d89c600 (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname="mtx"
pkgver=1.3.12
pkgrel=2
pkgdesc="SCSI Media Changer and Backup Device Control"
url="http://mtx.opensource-sw.net/"
arch="all"
license="GPL-2.0"
depends=""
makedepends=""
install=""
subpackages=""
source="https://downloads.sourceforge.net/mtx/$pkgname-$pkgver.tar.gz"

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

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--datadir=/usr/share \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make prefix="$pkgdir" install
}

sha512sums="d54c360608a2c25bd4d31af3e659de0557ed355fbe45d2dbf1341cfc7e468515eb07eb89200b77ee1fe2618139295ba3c3f4340cc43a7c506ced26aab2652028  mtx-1.3.12.tar.gz"