summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f7486c84384caca36bd68f66614f51ea3f7a49b9 (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
41
42
43
# Maintainer: Vladimir Panteleev <arch-pkg at thecybershadow.net>
_pkgname=snapd-xdg-open
pkgname=$_pkgname-git
pkgver=r44.6fed357
pkgrel=2
pkgdesc="Software for opening links from snaps in desktop"
arch=('i686' 'x86_64')
url="https://github.com/snapcore/snapd-xdg-open"
license=('GPL-3.0-or-later')
depends=('glib2')
makedepends=('git')
provides=('snapd-xdg-open')
conflicts=('snapd-xdg-open')
source=("git+https://github.com/snapcore/snapd-xdg-open")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "$srcdir/$_pkgname"
}

build() {
  cd "$srcdir/$_pkgname"

  ./autogen.sh
  ./configure \
	  --prefix=/usr \
	  --libexecdir=/usr/lib/$_pkgname
  make
}

package() {
  cd "$srcdir/$_pkgname"

  make DESTDIR="$pkgdir/" install

  # Include the xdg-open client program
  install src/xdg-open "$pkgdir/usr/lib/$_pkgname/"
}