-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPKGBUILD
More file actions
35 lines (30 loc) · 869 Bytes
/
PKGBUILD
File metadata and controls
35 lines (30 loc) · 869 Bytes
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
# Maintainer: lilydjwg <lilydjwg@gmail.com>
_pkgname=imap2discourse
pkgname=$_pkgname-git
pkgver=r2.f009ab8
pkgrel=4
pkgdesc="Forward mails from IMAP to Discourse"
arch=('any')
url="https://github.com/archlinuxcn/imap2discourse"
license=(GPL-3.0-or-later)
depends=('python' 'python-aioimaplib' 'python-httpx')
makedepends=('git')
source=("git+${url}.git")
backup=(etc/$_pkgname/config.toml)
sha256sums=('SKIP')
pkgver() {
cd $_pkgname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
true
}
package() {
cd $_pkgname
install -Dm755 imap2discourse -t "$pkgdir/usr/bin/"
mkdir "$pkgdir/etc"
mkdir -m700 "$pkgdir/etc/$_pkgname"
install -m600 config.toml.example "$pkgdir/etc/$_pkgname/config.toml"
install -Dm644 $_pkgname.service "$pkgdir/usr/lib/systemd/system/$_pkgname.service"
}
# vim:set ts=2 sw=2 et: