blob: e0c66e8ab9a98ca1c8b259debf92982214924ddf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Maintainer: jlaunay
pkgname=hypr-trans-git
pkgver=r8.0033fb6
pkgrel=1
pkgdesc="hypr-trans is a tiny bash utility that sets alpha attribute of an Hyprland window (like picom-trans on X11)"
arch=('any')
url="https://github.com/jlaunay/hypr-trans"
license=("GPL")
depends=('bash' 'jq' 'hyprland')
makedepends=('git')
provides=('hypr-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"
}
|