blob: 451012759d299130aa364ae1efc2958308cd20dd (
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
|
# Maintainer: Emma Tebibyte <emma@tebibyte.media>
pkgname="xdg-sanity"
pkgver=0.4.0
pkgrel=1
pkgdesc="A tool to sanely open http/s links."
arch=("any")
url="https://git.tebibyte.media/emma/xdg-sanity"
license=("AGPL3")
source=("https://git.tebibyte.media/emma/xdg-sanity/archive/0.4.0.tar.gz")
backup=("etc/xdg-sanity/xdg-sanity.conf")
depends=("handlr")
makedepends=("git" "gendesk")
provides=("xdg-sanity")
sha256sums=("SKIP")
prepare() {
cd ..
gendesk -n --categories="Network;WebBrowser" \
--exec="xdg-sanity %U" \
--genericname="Web Browser" \
--icon="browser" \
--mimetypes="text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;application/x-xpinstall" \
PKGBUILD
mv xdg-sanity.desktop "${srcdir}"
}
package() {
cd $srcdir
install -D ${pkgname}/xdg-sanity ${pkgdir}/usr/bin/xdg-sanity
install -D xdg-sanity.desktop ${pkgdir}/usr/share/applications/xdg-sanity.desktop
}
|