blob: a7ca874f7596ce7ef5a6cd9c47595c504249f447 (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: Helder Bertoldo <helder.bertoldo@gmail.com>
# Contributor:
_gitname=portals
_author=elementary
_pkg=xdg-desktop-portal-pantheon
pkgname=("${_pkg}-git")
pkgver=r487.8e942fd
pkgrel=1
pkgdesc="A backend implementation for xdg-desktop-portal for the Pantheon desktop environment (the official elementary OS desktop environment)"
arch=('i686' 'x86_64')
url="https://github.com/${_author}/${_gitname}"
license=('GPL3')
depends=('glib2' 'granite7' 'gtk4' 'vte4')
optdepends=()
makedepends=('git' 'meson>=0.58' 'ninja' 'vala>=0.56.1')
provides=("xdg-desktop-portal-impl" "${_pkg}" "${_pkg}-git")
conflicts=("xdg-desktop-portal-gnome" "xdg-desktop-portal-gtk" "${_pkg}")
source=("git+${url}.git")
md5sums=('SKIP')
pkgver() {
cd "${_gitname}"
( 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 "${_gitname}/"
meson . _build --prefix=/usr
ninja -C _build
}
package() {
cd "${_gitname}/"
DESTDIR="${pkgdir}" ninja -C _build install
}
|