summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladimir Panteleev2017-08-11 19:59:30 +0000
committerVladimir Panteleev2017-08-11 19:59:30 +0000
commit9c49a4edc2b7e99886959f75157e74b68b96caad (patch)
tree8a8d45b0d835ebdad584d9d4e8d1d429a1f51dfb
downloadaur-9c49a4edc2b7e99886959f75157e74b68b96caad.tar.gz
Initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD42
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e8ac0eea3f5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by mksrcinfo v8
+# Fri Aug 11 19:55:29 UTC 2017
+pkgbase = snapd-xdg-open-git
+ pkgdesc = Software for opening links from snaps in desktop
+ pkgver = r44.6fed357
+ pkgrel = 1
+ url = https://github.com/snapcore/snapd-xdg-open
+ arch = i686
+ arch = x86_64
+ license = GPL
+ provides = snapd-xdg-open
+ conflicts = snapd-xdg-open
+ source = git+https://github.com/snapcore/snapd-xdg-open
+ md5sums = SKIP
+
+pkgname = snapd-xdg-open-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..8d89f17d129
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/pkg/
+/src/
+*.pkg.tar.xz
+/snapd-xdg-open/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..88d45420913
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Vladimir Panteleev <arch-pkg at thecybershadow.net>
+_pkgname=snapd-xdg-open
+pkgname=$_pkgname-git
+pkgver=r44.6fed357
+pkgrel=1
+pkgdesc="Software for opening links from snaps in desktop"
+arch=('i686' 'x86_64')
+url="https://github.com/snapcore/snapd-xdg-open"
+license=('GPL')
+depends=('glib2')
+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/"
+}