summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c56decb27721b43fa905c3a85a85d09a43d3340f (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: Xarth <g@lzzz.ink>
pkgname=clipboard-go
pkgver=1.0.1
pkgrel=1
pkgdesc="Share clipboard between 💻Linux & 📱iOS"
arch=('any')
url="https://github.com/Xarth-Mai/Clipboard-Go"
license=('MPL2')
makedepends=('go')
depends=('xclip')
backup=(etc/clipboard-go/config.json)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Xarth-Mai/Clipboard-Go/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('cebe7263d7484e60caffc8c2e0356b73dd8dec5932cb877f35278a14baa06b26')

build() {
  cd "$srcdir/Clipboard-Go-${pkgver}"
  go get github.com/Xarth-Mai/EasyI18n-Go
  go build -o "${pkgname}" .
}

package() {
  install -Dm755 "${srcdir}/Clipboard-Go-${pkgver}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
  install -Dm644 "${srcdir}/Clipboard-Go-${pkgver}/config.json" "${pkgdir}/etc/clipboard-go/config.json"
  install -Dm644 "${srcdir}/Clipboard-Go-${pkgver}/clipboard-go.service" "${pkgdir}/usr/lib/systemd/user/${pkgname}.service"
}