summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c2be3eb068de4e0eb1af0ac3946e6d61f005f923 (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
35
36
37
38
39
40
41
42
43
44
# Maintainer: Byron Torres <b@torresjrjr.com>

pkgname=himitsu-ssh
pkgver='0.4'
pkgrel=1
pkgdesc='Himitsu integration for SSH'
arch=(x86_64)
url='https://git.sr.ht/~sircmpwn/himitsu-ssh'
license=(GPL3)
depends=(himitsu)
makedepends=(hare hare-ssh scdoc)
install=himitsu-ssh.install
_extracted="$pkgname-$pkgver"
source=(
	"$_extracted.tar.gz::https://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz"
	'hissh-agent.service'
)
sha256sums=(
	'57ba2368561afbffe63bfae1b9e531b1a72ba6673a6df1d69b02c67d206e72ff'
	'cff7c70946d9d06f06588e3a3b8c833eb67204a7c936f3f77ee3c8b18974a2ff'
)

build() {
	cd "$srcdir/$_extracted"
	export LDFLAGS=${LDFLAGS#'-Wl,'}
	export HAREPATH='/usr/src/hare/stdlib:/usr/src/hare/third-party'
	make HARE=/usr/bin/hare SCDOC=/usr/bin/scdoc
}

## v0.4 has no "@test"s
#check() {
#
#	cd "$srcdir/$_extracted"
#	export HAREPATH='/usr/src/hare/stdlib:/usr/src/hare/third-party'
#	make HARE=/usr/bin/hare SCDOC=/usr/bin/scdoc check
#}

package() {
	cd "$srcdir/$_extracted"
	make DESTDIR="$pkgdir" PREFIX=/usr install
	cd "$srcdir"
	install -Dm644 hissh-agent.service \
		"$pkgdir/usr/lib/systemd/user/hissh-agent.service"
}