diff options
author | coolfool | 2022-03-14 18:17:42 +0530 |
---|---|---|
committer | coolfool | 2022-03-14 18:17:42 +0530 |
commit | c1d7e086f9c2a87c0e7dfec9acfbab66162be5c1 (patch) | |
tree | f9039912c46686191377aee8d0cccad37b58463c | |
parent | ca9115d66387c62fef43dff4dbc4de9fee1848c3 (diff) | |
download | aur-c1d7e086f9c2a87c0e7dfec9acfbab66162be5c1.tar.gz |
Updated pkgbuild to aur guidelines
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 13 |
2 files changed, 14 insertions, 5 deletions
@@ -1,6 +1,6 @@ pkgbase = aurishem pkgdesc = Safe and Easy way to build and install packages directly from Arch User Repository - pkgver = 1.0.0 + pkgver = 1.0.0.r0.g482b61c pkgrel = 1 url = https://github.com/coolfool/aurishem arch = any @@ -8,7 +8,9 @@ pkgbase = aurishem makedepends = git depends = python-pydbus depends = python-gobject - source = git://github.com/coolfool/aurishem + provides = aurishem + conflicts = aurishem + source = git+https://github.com/coolfool/aurishem.git sha1sums = SKIP pkgname = aurishem @@ -1,6 +1,6 @@ # Maintainer: CoolFool <coolfool149@gmail.com> pkgname=aurishem -pkgver=1.0.0 +pkgver=1.0.0.r0.g482b61c pkgrel=1 pkgdesc="Safe and Easy way to build and install packages directly from Arch User Repository" arch=("any") @@ -8,13 +8,20 @@ url="https://github.com/coolfool/aurishem" license=('MIT') depends=('python-pydbus' 'python-gobject') makedepends=('git') -source=("git://github.com/coolfool/${pkgname}") +conflicts=('aurishem') +provides=('aurishem') +source=("git+https://github.com/coolfool/aurishem.git") sha1sums=('SKIP') +pkgver() { + cd "${pkgname%-git}" + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + package() { install -D "$srcdir/aurishem/source/aurishem.desktop" "$pkgdir/usr/share/applications/aurishem.desktop" install -D "$srcdir/aurishem/source/aurishem.png" "$pkgdir/usr/share/icons/hicolor/48x48/apps/aurishem.png" install -D "$srcdir/aurishem/source/aurishem" "$pkgdir/usr/bin/aurishem" chmod +x "$pkgdir/usr/bin/aurishem" xdg-mime default aurishem.desktop x-scheme-handler/aurishem -}
\ No newline at end of file +} |