blob: d675dcb6d2590ccb05481e1c141051330642b756 (
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
46
47
|
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=mt-st
pkgver=1.1
pkgrel=3
pkgdesc="Linux SCSI tape driver aware magnetic tape control"
url="http://www.ibiblio.org/pub/linux/system/backup/"
arch="all"
license="GPL2"
depends=
makedepends=
install=
subpackages="$pkgname-doc"
source="http://www.ibiblio.org/pub/linux/system/backup/$pkgname-$pkgver.tar.gz
musl-path_max.patch"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
make || return 1
}
package() {
cd "$_builddir"
for dir in sbin bin usr/share/man/man1 usr/share/man/man8
do
mkdir -p $pkgdir/$dir || return 1
done
make SBINDIR=$pkgdir/sbin BINDIR=$pkgdir/bin \
MANDIR=$pkgdir/usr/share/man install || return 1
}
md5sums="fdd5f5ec673c9f630a102ceff7612774 mt-st-1.1.tar.gz
06a7d26b71480105465c8b84303071fe musl-path_max.patch"
sha256sums="945cb4f3d9957dabe768f5941a9148b746396836c797b25f020c84319ba8170d mt-st-1.1.tar.gz
3ca59c3b94b0af048ad2811bf9f2f3b46542964e1952a118b7932bd850a5c86f musl-path_max.patch"
sha512sums="5fd11c430219c9c2d98f7567433a59c689e6f1bf9a2aaa13eb8df58569c1d70417965a4a62b5c9d0fc7e4e520ecb8d745911d18c3e2652c6aaedb94850743fdb mt-st-1.1.tar.gz
207f355497930cb466f5e3ad9601098381da1555709f9dafdbc85efcd5ea9cb8299e22c54b34b12d8fb9880dec75c3f625b3065438f7284bbcdef21b4de82555 musl-path_max.patch"
|