summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 23584ebf786c0c43afcb0ac8c6caa205a2fc9a84 (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
# Maintainer: éclairevoyant

pkgname=sunwait
pkgver=0.9.1
pkgrel=1
url="https://www.risacher.org/sunwait/"
pkgdesc="Calculate sunrise/sunset times with civil, nautical, astronomical and custom twilights"
arch=(i686 x86_64)
license=(GPL3)
depends=(glibc)
source=("$pkgname-$pkgver.tar.gz::https://github.com/risacher/sunwait/archive/refs/tags/$pkgver.tar.gz")
b2sums=('e623a4d0d05f09ae52671679d84ea6700f667f7629d80873930a36596dd19a9215e4fa62f107172d9e70614077059be6d864d01476651f6c18afa172f64f767d')

prepare() {
	# respect CFLAGS, LDFLAGS
	sed -i 's/FLAGS=/FLAGS+=/g' $pkgname-$pkgver/makefile
}

build() {
	make -C $pkgname-$pkgver
}

package() {
	cd $pkgname-$pkgver
	install -Dm755 $pkgname -t "$pkgdir/usr/bin/"
	install -Dm644 USAGE.txt -t "$pkgdir/usr/share/doc/$pkgname/"
}