aboutsummaryrefslogtreecommitdiff
path: root/deployments/archlinux/PKGBUILD
blob: a36afc313b59875209b4462d3d50d44ea90f4428 (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
# Copyright (c) 2020, Grégoire Duchêne <gduchene@awhk.org>
#
# Use of this file is governed by the ISC license that can be found in
# the LICENSE file.

# Maintainer: Grégoire Duchêne <gduchene@awhk.org>
pkgname=go-import-redirect
pkgver=0.1
pkgrel=1
arch=(x86_64)
url=https://github.com/gduchene/go-import-redirect
license=(custom:ISC)
makedepends=(go)
source=(git://github.com/gduchene/go-import-redirect.git)
sha256sums=(SKIP)

build() {
  cd ${pkgname}/cmd/${pkgname}
  go build
}

package() {
  cd ${pkgname}
  install -Dm755 cmd/${pkgname}/${pkgname} ${pkgdir}/usr/bin/${pkgname}
  install -Dm644 deployments/systemd/${pkgname}.service ${pkgdir}/usr/lib/systemd/system/${pkgname}.service
  install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}