blob: f8e0a0b8ae9fafdf70d002896c9d94ff3cdbec66 (
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
|
# Contributor : nerfingen <nerfingen@yahoo.de>
_pkgname=weechat-discord
pkgname=weechat-discord-git
pkgver=r409.8d56a7b
pkgrel=1
pkgdesc="Discord plugin for weechat"
arch=('i686' 'x86_64')
url="https://github.com/terminal-discord/weechat-discord"
license=('MIT')
depends=('weechat')
makedepends=('git' 'rust' 'clang')
source=("${_pkgname}::git+https://github.com/terminal-discord/weechat-discord.git")
md5sums=('SKIP')
pkgver() {
cd "${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${_pkgname}"
make
}
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"
}
|