aboutsummaryrefslogtreecommitdiffstats
path: root/community/imapsync/APKBUILD
blob: bc421dc5396d7b6c8c491b595794aa11af1d1475 (plain) (blame)
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
# 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-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
	perl-unicode-string
	perl-uri
	procps
	"
makedepends="perl-module-scandeps perl-par-packer"
subpackages="$pkgname-doc"
source="https://github.com/$pkgname/$pkgname/archive/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgname-$pkgver"

# NOTE: tests.sh requires authors remote imap password
check() {
	cd "$builddir"
	./imapsync --version
}

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"