summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d1b6b51f85bd17d76a29d6b48bcafe65fc9dabe6 (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: TheBitStick <the at bitstick dot rip>
pkgname=tsubasa-git
_pkgname=tsubasa
pkgver=r37.396d5f0
pkgrel=1
pkgdesc="Script for sharing screenshots and/or status updates"
arch=('any')
url="https://github.com/thebitstick/tsubasa"
license=('GPL3')
depends=('fish' 'gnome-screenshot' 'zenity' 'toot')
makedepends=('git')
provides=('tsubasa')
conflicts=('tsubasa')
source=('git+https://github.com/thebitstick/tsubasa')
sha512sums=('SKIP')

pkgver() {
	cd ${_pkgname}
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	install -D -t "$pkgdir/usr/bin" "${_pkgname}/tsubasa.fish"
	install -D -t "$pkgdir/usr/share/applications" "${_pkgname}/tsubasa.desktop"
	mv "$pkgdir/usr/bin/tsubasa.fish" "$pkgdir/usr/bin/tsubasa"
}