summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cf655ea92ff273a75059ccab7fca5c9f46a207cc (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
# Maintainer: nezu <nezu@nezu.cc>
pkgname=givemebadge-git
_pkgname=givemebadge
pkgver=e17fb70
pkgrel=1
pkgdesc="Pretty simple Discord bot to get the active developer badge"
arch=('any')
url="https://github.com/AlexFlipnote/GiveMeBadge"
license=('MIT')
depends=('python' 'python-colorama' 'python-requests' 'python-discord')
provides=('givemebadge')
conflicts=('givemebadge')
source=("start.sh" "$_pkgname::git+$url")
sha256sums=('ef09169e18bb768d482a156ce918b33738e2b97b124c13aede1373464b8f6642'
            'SKIP')

pkgver() {
	cd "$_pkgname"
	git describe --tags --always | sed 's#v##;s#-#+#g;s#+#+r#'
}

package() {
	install -Dm644 "$_pkgname/LICENSE" -t "$pkgdir/usr/share/licenses/$_pkgname"
	install -Dm644 "$_pkgname/index.py" -t "$pkgdir/usr/share/$_pkgname"
	install -Dm755 "start.sh" "$pkgdir/usr/bin/$_pkgname"
}