summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 75e5838acbdf7bf98f9414bbec10cb36417416bf (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: Andrea Feletto <andrea@andreafeletto.com>

pkgname=gmid-bin
_pkgname=${pkgname%-*}
pkgver=1.7.3
pkgrel=1
pkgdesc='Fast Gemini server written with security in mind.'
arch=('x86_64')
url='https://gmid.omarpolo.com'
license=('ISC')
provides=('gmid')
conflicts=('gmid' 'gmid-git')
depends=('libretls')
source=(
	"https://github.com/omar-polo/$_pkgname/releases/download/$pkgver/$_pkgname.linux.amd64"
	"https://raw.githubusercontent.com/omar-polo/$_pkgname/$pkgver/gmid.1"
	"https://raw.githubusercontent.com/omar-polo/$_pkgname/$pkgver/LICENSE"
	"https://raw.githubusercontent.com/omar-polo/$_pkgname/$pkgver/README.md"
)
sha256sums=(
	'fdf092d35b37fb8a0fe059aa0b811ff7121d4cfd723181ba72ba17f93840c6c6'
	'469f9097186c9798305e6ee274aeb990e20519bb598b94d4c1c7f283c40d13ed'
	'f82c1fa80d35427d109a77ed59ecda41474ef46539238750876702fa40579f9f'
	'425308363e30b4fa0d2fdd321d20070816ce856fe55c8a4654ebd1fd3ad7a23f'
)

package() {
	cd "$srcdir"
	install -Dm755 "$_pkgname.linux.amd64" "$pkgdir/usr/bin/$_pkgname"
	install -Dm644 gmid.1 -t "$pkgdir/usr/share/man/man1"
	install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$_pkgname"
	install -Dm644 README.md -t "$pkgdir/usr/share/doc/$_pkgname"
}