diff options
author | Jari Vetoniemi | 2015-06-29 20:32:07 +0300 |
---|---|---|
committer | Jari Vetoniemi | 2015-06-29 20:32:07 +0300 |
commit | 8e42b7cb92937fbc5ff2238d22f7debd6170df20 (patch) | |
tree | b266e893038a579d9327b9a87273975a5cfdd0f6 /PKGBUILD | |
download | aur-8e42b7cb92937fbc5ff2238d22f7debd6170df20.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..de816078e3f5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Cloudef <mailroxas@gmail.com> +# Intelligent and suckless replacement for xdg-open + +pkgname=linopen +pkgver=1.6 +pkgrel=1 +pkgdesc='Intelligent and suckless replacement for xdg-open' +arch=('any') +url='http://cloudef.eu' +license=('WTFPL') +backup=('etc/linopen.conf') +source=('open' 'linopen.conf') + +# Set this 1 to symlink /usr/bin/open to /usr/bin/xdg-open +# and conflict with xdg-utils +PROVIDE_XDG_OPEN=1 + +if [ $PROVIDE_XDG_OPEN -eq 1 ]; then + provides=('xdg-utils') + conflicts=('xdg-utils') +fi + +package() { + install -Dm755 "$srcdir/open" "${pkgdir}/usr/bin/open" + install -Dm644 "$srcdir/linopen.conf" "${pkgdir}/etc/linopen.conf" + + if [ $PROVIDE_XDG_OPEN -eq 1 ]; then + ln -s "/usr/bin/open" "$pkgdir/usr/bin/xdg-open" + fi +} + +md5sums=('15a6b084258db3a5d15eda3e65295445' + '37eef2ae627bb018b0638d6fefde7780') + +# vim: set ts=8 sw=3 tw=0 : |