From 2f4a59b2e32d11fb2559f042920db94f23f0e1fe Mon Sep 17 00:00:00 2001 From: Louis Dalibard Date: Sun, 20 Oct 2024 23:14:49 +0200 Subject: [PATCH] add: xyosc --- xyosc/PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 xyosc/PKGBUILD diff --git a/xyosc/PKGBUILD b/xyosc/PKGBUILD new file mode 100644 index 0000000..a5d3ac5 --- /dev/null +++ b/xyosc/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Louis Dalibard +# Contributor: Louis Dalibard +_pkgbase="ontake-xyosc" +pkgname="$_pkgbase-git" +pkgver=r2.gadfc70d +pkgrel=1 +pkgdesc="A simple XY-oscilloscope written in Go." +arch=("x86_64" "armv7h" "aarch64") +url="https://github.com/make-42/xyosc" +license=('GPL3') +groups=() +depends=('mesa' 'libxi' 'libxcursor' 'libxrandr' 'libxinerama' 'wayland' 'libxkbcommon') +makedepends=('go>=1.18' 'git') +optdepends=() +provides=("$_pkgbase") +conflicts=("$_pkgbase") +replaces=() +backup=() +options=() +install= +changelog= +source=("git+https://github.com/make-42/xyosc") +noextract=() +md5sums=("SKIP") #autofill using updpkgsums + +pkgver() { + cd ${srcdir}/xyosc + echo "r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)" +} + +build() { + cd "${srcdir}/xyosc" + go mod tidy + go build -tags noaudio +} + +package() { + install -Dm755 "${srcdir}/xyosc/xyosc" "${pkgdir}"/usr/bin/xyosc +}