summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5ca5c795a8b39656c9c8b2619ec8ebf7043665cf (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
# Maintainer: Unix Sheikh <aur at unixsheikh dot com>

pkgname=salahtime-go
pkgver=1.0.3
pkgrel=1
url="https://codeberg.org/unixsheikh/salahtime-go"
pkgdesc="A small command line application written in Go that displays the Islamic prayer times for Europe/Copenhagen"
arch=('any')
license=('CC BY 4.0')
depends=(
  'pacman>=5.1'
  'sudo'
  'git'
)
makedepends=(
  'go'
)

source=("https://codeberg.org/unixsheikh/salahtime-go/archive/v1.0.3.zip")
md5sums=('ab6ebd237206ab5479a569c8edc319a9')

build() {
  cd $pkgname
  go build \
    -gcflags "all=-trimpath=$PWD" \
    -asmflags "all=-trimpath=$PWD" \
    -ldflags "-extldflags $LDFLAGS" \
    -o $pkgname .
}

package() {
  cd $pkgname
  install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
}