# Maintainer: Jan Hensel pkgname=dayplan pkgver=0.1.3 pkgrel=1 arch=('x86_64') pkgdesc="Utility to plan your day and track your time" license=('MIT') url="https://github.com/ja-he/dayplan" depends=('glibc') makedepends=('go') optdepends=() backup=() source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") sha256sums=('4a97c269086379f2f4e9ebaaa9478a276f6c915d66f9d553fca73a37d214119e') build() { cd "$srcdir/$pkgname-$pkgver" project_base="github.com/ja-he/dayplan" source_root="${project_base}/src" go build \ -gcflags "all=-trimpath=${PWD}" \ -asmflags "all=-trimpath=${PWD}" \ -ldflags="-X '${source_root}/cli.version=v${pkgver}' -X '${source_root}/cli.hash=aur build from v${pkgver}'" \ -buildmode=pie } package() { cd "$srcdir/$pkgname-$pkgver" install -Dm755 "./dayplan" "$pkgdir/usr/bin/dayplan" }