diff options
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 13 |
2 files changed, 7 insertions, 9 deletions
@@ -1,7 +1,7 @@ pkgbase = xdg-sanity pkgdesc = A tool to sanely open http/s links. pkgver = 0.1 - pkgrel = 4 + pkgrel = 5 url = https://git.tebibyte.media/emma/xdg-sanity arch = any license = AGPL3 @@ -9,6 +9,7 @@ pkgbase = xdg-sanity makedepends = gendesk depends = handlr provides = xdg-sanity + backup = etc/xdg-sanity.conf source = git+https://git.tebibyte.media/emma/xdg-sanity.git sha256sums = SKIP @@ -2,13 +2,13 @@ pkgname="xdg-sanity" pkgver=0.1 -pkgrel=4 +pkgrel=5 pkgdesc="A tool to sanely open http/s links." arch=("any") url="https://git.tebibyte.media/emma/xdg-sanity" license=("AGPL3") source=("git+https://git.tebibyte.media/emma/xdg-sanity.git") - +backup=("etc/xdg-sanity.conf") depends=("handlr") makedepends=("git" "gendesk") provides=("xdg-sanity") @@ -17,11 +17,8 @@ sha256sums=("SKIP") prepare() { cd .. - gendesk -n PKGBUILD + gendesk -n --exec="xdg-sanity %U" --genericname="Web Browser" --categories="Network;WebBrowser" --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}" - touch xdg-sanity.conf - echo "browser = " > xdg-sanity.conf - mv xdg-sanity.conf "${srcdir}" } package() { @@ -29,7 +26,7 @@ package() { mkdir -p "${pkgdir}/usr/local/bin" mkdir -p "${pkgdir}/usr/share/applications" mkdir -p "${pkgdir}/etc" - mv "${srcdir}/${pkgname}/xdg-sanity.sh" "${pkgdir}/usr/local/bin/xdg-sanity" + mv "${pkgname}/xdg-sanity.sh" "${pkgdir}/usr/local/bin/xdg-sanity" + mv "${pkgname}/xdg-sanity.conf" "${pkgdir}/etc" mv xdg-sanity.desktop "${pkgdir}/usr/share/applications" - mv xdg-sanity.conf "${pkgdir}/etc" }
\ No newline at end of file |