summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9e6532cd69590cd8d5b8579ef1f41416b7779779 (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
# Maintainer: Stefan Tatschner <stefan@rumpelsepp.org>

pkgname=myipd
_pkgname=myip
pkgver=3
pkgrel=1
pkgdesc="Small http server returning your public ip"
arch=('x86_64')
url='https://git.sr.ht/~rumpelsepp/myip'
license=('GPL')
makedepends=('go-pie')
source=("$_pkgname-v$pkgver.tar.gz::https://git.sr.ht/~rumpelsepp/${_pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('3872c5ed83ca534a57102a3439fff62d99596cbb180262ec5d7bc3fa02fc581e')

build() {
    cd "$srcdir/$_pkgname-v$pkgver"
    make
}

package() {
    cd "$srcdir/$_pkgname-v$pkgver"
    install -Dm644 "${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
    install -Dm755 ${pkgname} "${pkgdir}/usr/bin/${pkgname}"
}