diff options
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 27 |
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..186740e8576f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = sway-trans-git + pkgdesc = sway-trans is a tiny bash utility that sets alpha attribute of a Sway window (like picom-trans on X11) + pkgver = r3.b00fdba + pkgrel = 1 + url = https://github.com/jlaunay/sway-trans + arch = any + license = GPL + makedepends = git + depends = bash + depends = sway + provides = sway-trans + source = git+https://github.com/jlaunay/sway-trans.git + sha256sums = SKIP + +pkgname = sway-trans-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..fedf36091ec5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: jlaunay +pkgname=sway-trans-git +pkgver=r3.b00fdba +pkgrel=1 +pkgdesc="sway-trans is a tiny bash utility that sets alpha attribute of a Sway window (like picom-trans on X11)" +arch=('any') +url="https://github.com/jlaunay/sway-trans" +license=("GPL") +depends=('bash' 'sway') +makedepends=('git') +provides=('sway-trans') +source=("git+https://github.com/jlaunay/${pkgname/-git}.git") +sha256sums=('SKIP') + +pkgver() { + cd "${pkgname/-git}" + ( set -o pipefail + git describe --long --abbrev=7 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)" + ) +} + +package() { + cd "${pkgname/-git}" + install -Dm755 ${pkgname/-git} "$pkgdir/usr/bin/${pkgname/-git}" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname/-git}/LICENSE" +} |