blob: b0af6bb1c6419e975f916cc8f35a5548784c9edc (
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: Petrus <petrus@null.local>
pkgname=oama-bin
_pkgname="${pkgname%-bin}"
pkgver=0.12
pkgrel=1
pkgdesc="Provide OAuth2 renewal and authorization capabilities"
arch=(x86_64 aarch64)
url="https://github.com/pdobsan/${_pkgname}"
license=('BSD')
groups=()
depends=()
makedepends=()
optdepends=(
'gnome-keyring: Stores passwords and encryption keys'
'gnupg: OpenPGP encryption and signing tool'
'msmtp: an SMTP client'
'fdm: fetch and deliver mail'
'offlineimap: Synchronizes emails between two repositories'
'isync: IMAP and MailDir mailbox synchronizer'
'cronie: cron daemon to execute scheduled commands'
)
provides=(${_pkgname})
conflicts=(mailctl-bin ${_pkgname} ${_pkgname}-git )
replaces=(mailctl-bin)
release=$_pkgname-$pkgver-Linux
source_x86_64=(https://github.com/pdobsan/oama/releases/download/${pkgver}/$release-x86_64.tgz)
source_aarch64=(https://github.com/pdobsan/oama/releases/download/${pkgver}/$release-aarch64.tgz)
sha256sums_x86_64=('e22c34a501ce60577f6d8663a640c76e2cc5db11c0e490d6f36d046aa77b0c51')
sha256sums_aarch64=('9aaadddd60bc4d68caae5f9840fb15a63c2bba8ec25109b9dcba949333aab8ee')
# install=.INSTALL
package() {
cd $release-$CARCH
install -Dm755 ${_pkgname} ${pkgdir}/usr/bin/${_pkgname}
install -Dm644 LICENSE ${pkgdir}/usr/share/${_pkgname}/LICENSE
install -Dm644 README.md ${pkgdir}/usr/share/${_pkgname}
install -Dm644 cabal.project.freeze ${pkgdir}/usr/share/${_pkgname}
cp -r configs ${pkgdir}/usr/share/${_pkgname}
install -Dm644 completions/${_pkgname}.bash ${pkgdir}/usr/share/bash-completion/completions/${_pkgname}.bash
install -Dm644 completions/${_pkgname}.fish ${pkgdir}/usr/share/fish/vendor_completions.d/${_pkgname}.fish
install -Dm644 completions/${_pkgname}.zsh ${pkgdir}/usr/share/zsh/site-functions/_${_pkgname}
}
|