aboutsummaryrefslogtreecommitdiffstats
path: root/community/imapsync/APKBUILD
blob: c47b53ce362a271cd4a7fb36ade91d8f5073d8fc (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=imapsync
pkgver=1.882
pkgrel=0
pkgdesc="IMAP synchronisation, sync, copy or migration tool"
url="http://imapsync.lamiral.info"
arch="noarch"
license="custom"
depends="perl-app-cpanminus
	perl-authen-ntlm
	perl-cgi
	perl-crypt-openssl-rsa
	perl-data-dumper
	perl-data-uniqid
	perl-digest-hmac
	perl-digest-md5
	perl-dist-checkconflicts
	perl-file-copy-recursive
	perl-io-compress
	perl-io-socket-inet6
	perl-io-socket-ssl
	perl-io-tee
	perl-json-webtoken
	perl-libwww
	perl-mail-imapclient
	perl-module-implementation
	perl-package-stash
	perl-parse-recdescent
	perl-readonly
	perl-regexp-common
	perl-sys-meminfo
	perl-term-readkey
	perl-unicode-string
	perl-uri
	procps
	"
checkdepends="
	perl-test-deep
	perl-test-fatal
	perl-test-mock-guard
	perl-test-mockobject
	perl-test-nowarnings
	perl-test-pod
	perl-test-requires
	perl-test-simple
	perl-test-warn
	"
makedepends="perl-module-scandeps perl-par-packer"
subpackages="$pkgname-doc"
source="https://github.com/$pkgname/$pkgname/archive/$pkgname-$pkgver.tar.gz
	makefile.patch"
builddir="$srcdir/$pkgname-$pkgname-$pkgver"

# NOTE: tests.sh requires authors remote imap password
check() {
	cd "$builddir"

	./imapsync --version
	make testp  # check dependencies
}

package() {
	cd "$builddir"

	make DESTDIR="$pkgdir" install

	mkdir -p "$pkgdir"/usr/share/doc/$pkgname
	install -Dm644 FAQ.d/* "$pkgdir"/usr/share/doc/$pkgname/

	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="3953cb29b210c283be3fe72f1e1537594415bd5457b469b801625d6c857b982d2b2b3da9528dd1e6ccc6831c022ce495f7a5eaaea04d228bca374f185344f455  imapsync-1.882.tar.gz
c017e2b437865ee83eae6fb66a034b9259720b9cd8bfe79c37e08cd6c1788bb16bba3b96f3861ea0c2ef77cc5a2663c9a6042dbc3434a193c331b4d6c3937b95  makefile.patch"