mirror of https://github.com/kha7iq/pingme
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
729 B
28 lines
729 B
# Maintainer: André Kugland <kugland@gmail.com>
|
|
|
|
pkgname=pingme
|
|
pkgver=${PKGVER}
|
|
pkgrel=${PKGREL}
|
|
pkgdesc="PingMe is a CLI tool which provides the ability to send messages or alerts to multiple messaging platforms & email."
|
|
url='https://pingme.lmno.pk'
|
|
arch=("i686" "x86_64" "aarch64")
|
|
license=("MIT")
|
|
makedepends=('go>=1.16')
|
|
source=(
|
|
"${pkgname}-${pkgver}.tar.gz::https://github.com/kha7iq/${pkgname}/archive/v${pkgver}.tar.gz"
|
|
)
|
|
sha256sums=(
|
|
${SHA256SUM}
|
|
)
|
|
|
|
build() {
|
|
cd "${pkgname}-${pkgver}"
|
|
export CGO_LDFLAGS="$LDFLAGS"
|
|
go build -ldflags "-linkmode=external -s -w -X main.Version=${pkgver}" -o ${pkgname} .
|
|
}
|
|
|
|
package() {
|
|
cd "${pkgname}-${pkgver}"
|
|
install -Dm755 ${pkgname} "${pkgdir}/usr/bin/${pkgname}"
|
|
}
|