blob: e740c312ad615dd42ee91cadd0305cdb1dadc39a (
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
|
# Maintainer: Miko (mikoxyz) <mikoxyzzz@gmail.com>
# Contributor: nerfingen <nerfingen@yahoo.de>
_pkgname=weechat-discord-mk3
pkgname=weechat-discord-mk3-git
pkgver=r626.a3dd82b
pkgrel=1
pkgdesc="Discord plugin for weechat (mk3)"
arch=('i686' 'x86_64')
url="https://github.com/terminal-discord/weechat-discord/tree/mk3"
license=('MIT')
depends=('weechat')
makedepends=('git' 'rust' 'clang')
conflicts=('weechat-discord-git')
options=('!lto')
source=("${_pkgname}::git+https://github.com/terminal-discord/weechat-discord.git#branch=mk3")
md5sums=('SKIP')
pkgver() {
cd "${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${_pkgname}"
RUSTUP_TOOLCHAIN=stable cargo build --release --locked --all-features --target-dir=target
}
check() {
cd "${_pkgname}"
RUSTUP_TOOLCHAIN=stable cargo test --release --locked --target-dir=target
}
package() {
cd "${_pkgname}"
install -D "target/release/libweecord.so" \
"${pkgdir}/usr/lib/weechat/plugins/libweecord.so"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|