diff options
author | Luis Martinez | 2022-07-09 00:54:33 -0500 |
---|---|---|
committer | Luis Martinez | 2022-07-09 00:54:33 -0500 |
commit | 61318183a593f568b57df25f9c490aa80eeb9aa4 (patch) | |
tree | e916bdf94ec08ba3e4f5fb4f4ad429694c8fdfc8 | |
download | aur-61318183a593f568b57df25f9c490aa80eeb9aa4.tar.gz |
initial commit based on bluetuith-bin
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5052d1e97f29 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = bluetuith + pkgdesc = TUI-based bluetooth manager + pkgver = 0.0.2 + pkgrel = 1 + url = https://github.com/darkhz/bluetuith + arch = x86_64 + arch = i686 + arch = arm + arch = aarch64 + arch = armv6h + arch = armv7h + license = MIT + makedepends = go + depends = bluez + depends = dbus + source = bluetuith-0.0.2.tar.gz::https://github.com/darkhz/bluetuith/archive/v0.0.2.tar.gz + sha256sums = c9273bcaa6ef3c2cc4d517d7c65a74d39c53aabda02aff221f73bd8ce0a2f4f7 + +pkgname = bluetuith diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c45e74c7ea78 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Luis Martinez <luis dot martinez at disroot dot org> +# Contributor: darkhz <kmachanwenw at gmail dot com> + +pkgname=bluetuith +pkgver=0.0.2 +pkgrel=1 +pkgdesc="TUI-based bluetooth manager" +arch=('x86_64' 'i686' 'arm' 'aarch64' 'armv6h' 'armv7h') +url="https://github.com/darkhz/bluetuith" +license=('MIT') +depends=('bluez' 'dbus') +makedepends=('go') +source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") +sha256sums=('c9273bcaa6ef3c2cc4d517d7c65a74d39c53aabda02aff221f73bd8ce0a2f4f7') + +prepare() { + cd "$pkgname-$pkgver" + mkdir -p build + go mod download +} + +build() { + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" + cd "$pkgname-$pkgver" + go build -o build +} + +package() { + cd "$pkgname-$pkgver" + install -D "build/$pkgname" -t "$pkgdir/usr/bin/" + install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" + install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/" +} |