aboutsummaryrefslogtreecommitdiffstats
path: root/testing/megatools/APKBUILD
blob: bcc205db8f351a6a6aa22dd9ff882d6c480114f9 (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
# Contributor: H <agathos5@gmail.com>
# Maintainer:
pkgname=megatools
pkgver=1.9.98
pkgrel=2
pkgdesc="Megatools is a collection of programs for accessing Mega.nz service from a command line of your desktop or server."
url="https://megatools.megous.com"
arch="all"
license="GPL-2.0"
makedepends="curl-dev glib-dev libressl-dev gmp-dev asciidoc"
subpackages="$pkgname-doc"
source="https://megatools.megous.com/builds/megatools-1.9.98.tar.gz libressl.patch"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure --prefix=/usr
	make
}

check() {
	cd "$builddir"
	make check
	for i in  megacopy megadf megadl megaget megals megamkdir megaput megareg megarm; do
		msg $i
		./$i --version
	done
}

package() {
	cd "$builddir"
	#make DESTDIR="$pkgdir" install
	./install-sh -c -d "${pkgdir}/usr/bin"
	./install-sh -c -d "${pkgdir}/usr/share/doc/megatools"
	./install-sh -c -d "${pkgdir}/usr/share/man/man1"
	./install-sh -c -d "${pkgdir}/usr/share/man/man5"
	./install-sh -c -d "${pkgdir}/usr/share/man/man7"
	./install-sh -c -m 755 megacopy megadf megadl megaget megals megamkdir megaput megareg megarm "${pkgdir}/usr/bin"
	./install-sh -c -m 644 LICENSE NEWS TODO README INSTALL HACKING "${pkgdir}/usr/share/doc/megatools"
	./install-sh -c -m 644 docs/megadf.1 docs/megaget.1 docs/megals.1 docs/megamkdir.1 docs/megaput.1 docs/megareg.1 docs/megarm.1 \
													docs/megacopy.1 docs/megadl.1 "${pkgdir}/usr/share/man/man1"
	./install-sh -c -m 644 docs/megarc.5 "${pkgdir}/usr/share/man/man5"
	./install-sh -c -m 644 docs/megatools.7 "${pkgdir}/usr/share/man/man7"
}

sha512sums="4e1c9e3a6aae0009d085b38ae79d9ba9e66415b0517eb1f0c0abec40a3be103bf0f78bfd8fa8d678a578eb0652f3b88292bcb53c1e1efc83082a6239644390d0  megatools-1.9.98.tar.gz
f30370fce5567f52a7dd007704e27e368402287cf5dc416d18f3cfd09d2fd5711b59525a0533546fe0eed98f5d162836a265fbc9d641ff5cca0ad20d3fc4f172  libressl.patch"