diff options
author | Phil Jones <philj56@gmail.com> | 2022-06-26 09:28:54 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-06-26 09:28:54 +0100 |
commit | aa670b68a7f0850270661d06a37759d3474fe4eb (patch) | |
tree | 5bc842be49c3301dff0fbc6ecdf4da1ca49facd1 /PKGBUILD |
Initial package creation.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..aabcccf --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Philip Jones <philj56@gmail.com> +pkgname=tofi-git +pkgver=r73.32e2cb8 +pkgrel=1 +pkgdesc="Tiny rofi / dmenu replacement for wlroots-based Wayland compositors." +arch=("x86_64") +url="https://github.com/philj56/tofi" +license=("MIT") +groups=() +depends=("freetype2" "harfbuzz" "cairo" "pango" "wayland" "libxkbcommon") +makedepends=("meson" "git" "scdoc" "wayland-protocols") +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +replaces=() +backup=() +options=() +install= +source=("${pkgname}::git+${url}") +noextract=() +sha512sums=("SKIP") + +pkgver() { + cd "${pkgname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "${pkgname}" + meson --prefix /usr -Dbuildtype=release build +} + +build() { + cd "${pkgname}" + ninja -C build +} + +package() { + cd "${pkgname}" + DESTDIR="$pkgdir" ninja -C build install +} |