From 35f604d84aabae4852130007561b6172c90155d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Mon, 1 Feb 2021 07:13:00 +0300 Subject: init --- .SRCINFO | 25 +++++++++++++++++++++++++ PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..733670d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = mako-git + pkgdesc = Lightweight notification daemon for Wayland. Package for soystemd-less systems + pkgver = v1.4.1.r58.g2808b0f + pkgrel = 1 + url = http://mako-project.org + arch = x86_64 + license = MIT + makedepends = meson + makedepends = scdoc + makedepends = libelogind + makedepends = wayland-protocols + makedepends = git + depends = gdk-pixbuf2 + depends = pango + depends = cairo + depends = elogind + depends = wayland + optdepends = jq: support for 'makoctl menu' + provides = mako + conflicts = mako + source = mako::git+https://github.com/emersion/mako.git + sha1sums = SKIP + +pkgname = mako-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..50c20f7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Yaroslav de la Peña Smirnov +# Original AUR Maintainer: Thorben Günther +# Contributor: Drew DeVault +pkgname=mako-git +_pkgname=mako +pkgver=v1.4.1.r58.g2808b0f +pkgrel=1 +license=('MIT') +pkgdesc='Lightweight notification daemon for Wayland. Package for soystemd-less systems' +makedepends=("meson" "scdoc" "libelogind" "wayland-protocols" "git") +depends=( + "gdk-pixbuf2" + "pango" + "cairo" + "elogind" + "wayland" +) +optdepends=("jq: support for 'makoctl menu'") +arch=("x86_64") +url='http://mako-project.org' +source=("${pkgname%-*}::git+https://github.com/emersion/mako.git") +sha1sums=('SKIP') +provides=('mako') +conflicts=('mako') + +pkgver() { + cd "$_pkgname" + ( + set -o pipefail + git describe --long 2> /dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +build() { + cd "$_pkgname" + meson build + ninja -C build +} + +package() { + cd "$_pkgname" + DESTDIR="$pkgdir/" ninja -C build install + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"${pkgname%-*}"/LICENSE +} -- cgit v1.2.3