diff options
author | emma | 2022-09-03 21:49:39 -0400 |
---|---|---|
committer | emma | 2022-09-03 21:49:39 -0400 |
commit | 1238bb06f56f7e63791e1f458ca2ff630d13c3c2 (patch) | |
tree | 09fa6c3b459ca323d502a0378ae9cbc6ce9fe39e | |
parent | 9899f7bbeff6da0e235c6d7c44af5a0eeafef81c (diff) | |
download | aur-1238bb06f56f7e63791e1f458ca2ff630d13c3c2.tar.gz |
added tag parsing for pkgver
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 9 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = xdg-sanity pkgdesc = A tool to sanely open http/s links. pkgver = 0.1 - pkgrel = 5 + pkgrel = 6 url = https://git.tebibyte.media/emma/xdg-sanity arch = any license = AGPL3 @@ -2,7 +2,7 @@ pkgname="xdg-sanity" pkgver=0.1 -pkgrel=5 +pkgrel=6 pkgdesc="A tool to sanely open http/s links." arch=("any") url="https://git.tebibyte.media/emma/xdg-sanity" @@ -15,6 +15,11 @@ provides=("xdg-sanity") sha256sums=("SKIP") +pkgver() { + cd $srcdir/$pkgname + git tag -l +} + prepare() { cd .. 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 @@ -22,11 +27,11 @@ prepare() { } package() { - cd $srcdir/ + cd $srcdir mkdir -p "${pkgdir}/usr/local/bin" mkdir -p "${pkgdir}/usr/share/applications" mkdir -p "${pkgdir}/etc" mv "${pkgname}/xdg-sanity.sh" "${pkgdir}/usr/local/bin/xdg-sanity" - mv "${pkgname}/xdg-sanity.conf" "${pkgdir}/etc" + mv "${pkgname}/xdg-sanity.conf" "${pkgdir}/etc/xdg-sanity.conf" mv xdg-sanity.desktop "${pkgdir}/usr/share/applications" }
\ No newline at end of file |