diff options
author | Echo J | 2023-04-14 22:20:59 +0300 |
---|---|---|
committer | Echo J | 2023-04-14 22:20:59 +0300 |
commit | e0206a643fac5822b3d43506d5a455c6ff0de653 (patch) | |
tree | ded1241e879dcd6aaa8637ba40163e90ee426323 | |
download | aur-e0206a643fac5822b3d43506d5a455c6ff0de653.tar.gz |
Initial taste of vinegar on chips
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 46 |
3 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a3d9305fb882 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = vinegar-git + pkgdesc = A transparent wrapper for Roblox Player and Roblox Studio (Git version) + pkgver = 1.0.1.r2.ge817411 + pkgrel = 1 + url = https://github.com/vinegarhq/vinegar + arch = x86_64 + license = GPL3 + makedepends = git + makedepends = go + depends = glibc + depends = hicolor-icon-theme + conflicts = vinegar + source = git+https://github.com/vinegarhq/vinegar + sha256sums = SKIP + +pkgname = vinegar-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..f953639261c0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +# Ignore makepkg auto-generated stuff +pkg/ +src/ +vinegar/ +*.pkg.tar.zst diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d227a74707bb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Echo J. <aidas957 at gmail dot com> +# shellcheck shell=bash disable=SC2034 + +# Note: I hope wael is a nice woman now :troll: + +_pkgname=vinegar +pkgname=vinegar-git +pkgver=1.0.1.r2.ge817411 +pkgrel=1 +pkgdesc="A transparent wrapper for Roblox Player and Roblox Studio (Git version)" +arch=("x86_64") +url="https://github.com/vinegarhq/vinegar" +license=("GPL3") +depends=("glibc" "hicolor-icon-theme") +makedepends=("git" "go") +conflicts=("vinegar") +source=("git+${url}") +sha256sums=("SKIP") + +pkgver() { + cd "${srcdir}/${_pkgname}" + git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "${srcdir}/${_pkgname}" + + # Interesting Go boilerplate (this is my first time packaging Go stuff) + 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=vendor -modcacherw" + + make VERSION="${pkgver}" DESTDIR="${pkgdir}" PREFIX="/usr" vinegar +} + +package() { + cd "${srcdir}/${_pkgname}" + + # This does all the work (except for the optional LICENSE file) + make VERSION="${pkgver}" DESTDIR="${pkgdir}" PREFIX="/usr" install + + # Install GPLv3 license (just in case) + install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" +} |