summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9948258da70a9272e4bc1082e3923bc4d8a6c0f6 (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
# Maintainer: minus <minus@mnus.de>

pkgname=sshign
pkgver=0.2.1
pkgrel=1
pkgdesc="Small program to sign & verify files with your SSH key"
arch=('any')
url="https://git.sr.ht/~minus/sshign"
license=('MIT')
makedepends=('go' 'scdoc')
source=("https://git.sr.ht/~minus/sshign/archive/$pkgver.tar.gz")
sha256sums=('baa7654788e850523a55ee5568cc7c1cbc87f3d5468a34df54fe8fc8cfad3d03')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  GOPATH="$srcdir" make PREFIX=/usr DESTDIR="$pkgdir"
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  make install PREFIX=/usr DESTDIR="$pkgdir"
  install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}