diff options
author | Amolith | 2024-02-21 14:47:58 -0500 |
---|---|---|
committer | Amolith | 2024-02-21 14:47:58 -0500 |
commit | 9aa65da867da093d1e4e57178617d3fc0b267909 (patch) | |
tree | a67ba590115c758ac450a709a3e8efbae96ec7e8 | |
download | aur-9aa65da867da093d1e4e57178617d3fc0b267909.tar.gz |
Initial commit at v0.0.4
-rw-r--r-- | .SRCINFO | 26 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 39 |
3 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f68270fbdc09 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,26 @@ +pkgbase = watt-wiser + pkgdesc = A software energy consumption estimation tool + pkgver = v0.0.4 + pkgrel = 1 + url = https://git.sr.ht/~whereswaldon/watt-wiser + arch = any + license = Unlicense + makedepends = go + makedepends = gcc + makedepends = vulkan-headers + makedepends = pkgconf + makedepends = wayland + makedepends = wayland-protocols + makedepends = libx11 + makedepends = libxkbcommon-x11 + makedepends = libxcursor + depends = watt-wiser-sensors + depends = xdg-desktop-portal + provides = watt-wiser + conflicts = watt-wiser + source = watt-wiser-v0.0.4.tar.gz::https://git.sr.ht/~whereswaldon/watt-wiser/archive/v0.0.4.tar.gz + sha256sums = 1e03f78d148ceb5909d877c883130dcafeb260e298c7ad9ae0d9ad80ae0d8980 + sha512sums = 82a7712fb90d636cafd18e56257a713714dbceebf07740413a8c0023db9bf098a66899a851942dd9ea2ad909232a2f1f88a7164a708ba2bd764c995b40968e63 + b2sums = 88dfe0a2f1492feeaf0ac4bc364459147c77a4fb22082f5b223468338a635f7f309d91eb7afd842a1915b26d16aee5466d5043677609821236ac6be1ba1a0fb2 + +pkgname = watt-wiser diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..789ccee80c98 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/watt-wiser-* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ec0016624f05 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Amolith <amolith@secluded.site> +pkgname=watt-wiser +pkgdesc='A software energy consumption estimation tool' +arch=("any") +url="https://git.sr.ht/~whereswaldon/watt-wiser" +pkgver=v0.0.4 +pkgrel=1 +license=("Unlicense") +makedepends=("go" "gcc" "vulkan-headers" "pkgconf" "wayland" "wayland-protocols" "libx11" "libxkbcommon-x11" "libxcursor") +depends=("watt-wiser-sensors" "xdg-desktop-portal") +provides=($pkgname) +conflicts=($pkgname) + +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz") +sha256sums=('1e03f78d148ceb5909d877c883130dcafeb260e298c7ad9ae0d9ad80ae0d8980') +sha512sums=('82a7712fb90d636cafd18e56257a713714dbceebf07740413a8c0023db9bf098a66899a851942dd9ea2ad909232a2f1f88a7164a708ba2bd764c995b40968e63') +b2sums=('88dfe0a2f1492feeaf0ac4bc364459147c77a4fb22082f5b223468338a635f7f309d91eb7afd842a1915b26d16aee5466d5043677609821236ac6be1ba1a0fb2') + +build() { + cd "${pkgname}-${pkgver}" + + export CGO_LDFLAGS="${LDFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" + + go build -o "${pkgname}" . +} + +check() { + cd "${pkgname}-${pkgver}" + go test ./... +} + +package() { + cd "${pkgname}-${pkgver}" + install -Dm755 "$pkgname" "$pkgdir/usr/local/bin/$pkgname" +} |