blob: a40f54a1ed7a60d8e7ff6033104d0de61aea3ae6 (
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
|
# Maintainer: JunYoung Gwak <aur@jgwak.com>
_gitname=irc-slack
pkgname=${_gitname}-git
pkgver=20191027
pkgrel=1
pkgdesc='IRC-to-Slack gateway'
arch=('any')
license=('BSD')
_gourl=github.com/insomniacslk/${_gitname}
url="https://$_gourl"
makedepends=('go' 'git')
source=("git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_gitname}"
git log -1 --format="%cd" --date=short | sed 's|-||g'
}
build() {
cd "${srcdir}"
GOPATH="${srcdir}" go get -v -x ${_gourl}
}
package() {
install -Dm755 "${srcdir}/bin/${_gitname}" "${pkgdir}/usr/bin/${_gitname}"
install -Dm644 "${srcdir}/${_gitname}/LICENSE" "${pkgdir}/usr/share/licenses/${_gitname}/LICENSE"
}
|