blob: 931597d0274ed615f04122f7444d99061811d019 (
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
|
# Maintainer: Benjamin Lopez <contact@scotow.com>
pkgname=notigo
pkgver=2.0.4
pkgrel=1
pkgdesc="Send iOS/Android notifications using IFTTT's Webhook"
arch=('x86_64')
url="https://github.com/scotow/${pkgname}"
license=('MIT')
makedepends=('go' 'git')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/scotow/${pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('bddfc256239cb629e52e4d6245a08effc8956f248271a2357e58b76ab5dad819')
prepare(){
mkdir -p src/github.com/scotow
ln -rTsf "${pkgname}-${pkgver}" "src/github.com/scotow/${pkgname}"
}
build(){
export GOPATH="${srcdir}"
cd "src/github.com/scotow/${pkgname}"
go get -v ./...
go install \
-gcflags "all=-trimpath=${GOPATH}/src" \
-asmflags "all=-trimpath=${GOPATH}/src" \
-ldflags "-extldflags ${LDFLAGS}" \
./cmd/...
}
package(){
install -Dm755 "bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
cd "${pkgname}-${pkgver}"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|