diff options
author | Kenneth Shaw | 2023-08-30 06:27:07 +0700 |
---|---|---|
committer | Kenneth Shaw | 2023-08-30 06:27:07 +0700 |
commit | 7b1c8232e416ef46f2425de77491bae0a25697d6 (patch) | |
tree | ccf877b819b79bf10a8b19565368f477a50c8882 | |
download | aur-7b1c8232e416ef46f2425de77491bae0a25697d6.tar.gz |
Adding wofimoji v0.1.0
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 38 |
3 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ce6a42b89258 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = wofimoji + pkgdesc = the wofi emoji picker + pkgver = 0.1.0 + pkgrel = 1 + url = https://github.com/kenshaw/wofimoji + arch = i686 + arch = x86_64 + arch = armv6h + arch = armv7h + arch = aarch64 + license = MIT + makedepends = go + source = wofimoji-0.1.0.tar.gz::https://github.com/kenshaw/wofimoji/archive/v0.1.0.tar.gz + sha256sums = 058e1eae4251eaaf9a3e56ad00807e0370c4b5ed3591622973b4a5082eb49fe9 + +pkgname = wofimoji diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..c388134862af --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +/*.tar.xz +/*.tar.gz +/*.tar.zst +/pkg +/src +/wofimoji diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..70bef8073b27 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Kenneth Shaw <kenshaw at gmail com> + +pkgname=wofimoji +pkgver=0.1.0 +pkgrel=1 +pkgdesc='the wofi emoji picker' +arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64') +url="https://github.com/kenshaw/wofimoji" +license=('MIT') +makedepends=('go') +source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") +sha256sums=('058e1eae4251eaaf9a3e56ad00807e0370c4b5ed3591622973b4a5082eb49fe9') + +build() { + cd $pkgname-$pkgver + + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + + go build \ + -trimpath \ + -buildmode=pie \ + -mod=readonly \ + -modcacherw \ + -ldflags="-w -s -linkmode=external + -X main.name=$pkgname + -X main.version=$pkgver" \ + -o $pkgname +} + +package() { + cd $pkgname-$pkgver + install -Dm755 $pkgname -t "$pkgdir/usr/bin" + install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname" + install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" +} |