summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a94610ba137308b68ca7070f2da0a83d383c6eb (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
# 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')
depends=('grep' 'file')

# 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 :