aboutsummaryrefslogtreecommitdiffstats
path: root/main/mtx/APKBUILD
blob: 294003ee5ae9d9b597f2657e5b4a6ab0a3363e13 (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="GPL2"
depends=""
makedepends=""
install=""
subpackages=""
source="http://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
}

md5sums="ce8f0e44671fb0c7d9ec30bb0bfa8b5c  mtx-1.3.12.tar.gz"