summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorWesley Moore2017-09-27 10:05:12 +1000
committerWesley Moore2017-09-27 10:05:12 +1000
commitcf992188a71f7054b4d9c5c1ab731b6d5a82dae7 (patch)
tree2d9a92048d87d71f7fca339ed2403fd2a0a30c6e /PKGBUILD
downloadaur-dopen-git.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD26
1 files changed, 26 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0a14ee1b920
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Wesley Moore <wes@wezm.net>
+_pkgname=dopen
+pkgname=dopen-git
+pkgver=2
+pkgrel=1
+pkgdesc='Execute .desktop files from the command line'
+arch=('i686' 'x86_64')
+url="https://github.com/tmccombs/dopen"
+license=('APACHE')
+depends=()
+conflicts=($_pkgname)
+provides=($_pkgname)
+makedepends=('rust' 'cargo' 'git')
+source=("git+$url.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ git rev-list --count HEAD
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+ cargo build --release
+ install -Dm755 "$srcdir/$_pkgname/target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
+}