summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 77f5b315aa31bee4b8789a1ec7eedfdf228149dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
pkgname=serial2tcp
pkgver=0.1
pkgrel=1
arch=('x86_64')
url="https://cgit.ctu.cx/serial2tcp/"
license=( 'GPL-3' )
depends=( 'glibc' )
makedepends=( 'nim' 'nimble' 'git' )
_commit="82ba5985f8546f8cf2350918163418218eac9d0c"
source=("${pkgname}-${_commit}.tar.gz::https://cgit.ctu.cx/${pkgname}/snapshot/${pkgname}-${_commit}.tar.gz")
sha256sums=('35c80e84c1e35555c693ba0a644aaac176c0aa387d8f4c104101583aa8819eb2')

build() {
  cd "$srcdir/${pkgname}-${_commit}/"
  nimble build -d:release -d:nimWorkaround14447 -y
}

package() {
  cd "$srcdir/${pkgname}-${_commit}"
  install -Dm755 ./serial2tcp "$pkgdir"/usr/bin/serial2tcp
  install -Dm755 ./serial2tcp@.service "$pkgdir"/usr/lib/systemd/system/serial2tcp@.service
}