ctucx.git: aur-packages

My personal aur-packages [deprecated in favor of nixos]

commit f43901018511e06554d7045d185e5bc34a142434
parent ef265e427e7179c6b6edab953afdd2c040a3aaef
Author: ctucx <c@ctu.cx>
Date: Thu, 11 Feb 2021 16:36:03 +0100

init
2 files changed, 37 insertions(+), 0 deletions(-)
A
serial2tcp/.SRCINFO
|
15
+++++++++++++++
A
serial2tcp/PKGBUILD
|
22
++++++++++++++++++++++
diff --git a/serial2tcp/.SRCINFO b/serial2tcp/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = serial2tcp
+	pkgver = 0.1
+	pkgrel = 0
+	url = https://cgit.ctu.cx/serial2tcp/
+	arch = x86_64
+	license = GPL-3
+	makedepends = nim
+	makedepends = nimble
+	makedepends = git
+	depends = glibc
+	source = serial2tcp-ef1ea798224b912aa3cee213bdf91bb362fa05ea.tar.gz::https://cgit.ctu.cx/serial2tcp/snapshot/serial2tcp-ef1ea798224b912aa3cee213bdf91bb362fa05ea.tar.gz
+	sha256sums = 2625c849b495bdb106e604143af2ed691b820885273a78ee41881fbee167ddf9
+
+pkgname = serial2tcp
+
diff --git a/serial2tcp/PKGBUILD b/serial2tcp/PKGBUILD
@@ -0,0 +1,22 @@
+pkgname=serial2tcp
+pkgver=0.1
+pkgrel=0
+arch=('x86_64')
+url="https://cgit.ctu.cx/serial2tcp/"
+license=( 'GPL-3' )
+depends=( 'glibc' )
+makedepends=( 'nim' 'nimble' 'git' )
+_commit="ef1ea798224b912aa3cee213bdf91bb362fa05ea"
+source=("${pkgname}-${_commit}.tar.gz::https://cgit.ctu.cx/${pkgname}/snapshot/${pkgname}-${_commit}.tar.gz")
+sha256sums=('2625c849b495bdb106e604143af2ed691b820885273a78ee41881fbee167ddf9')
+
+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
+}