summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4cd5fae2f215c86704f3c4608c94fe65f0c2e86a (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
27
28
29
# Maintainer: Jeidnx <jeidnx@domainhier.de>

pkgname=coshr-git
pkgver=r9.f098279
pkgrel=1
pkgdesc="Easily share the output of your commands"
arch=("any")
url="https://github.com/Jeidnx/coshr"
license=('GPL')
depends=('wl-clipboard' 'bash' 'curl')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/Jeidnx/coshr')
md5sums=('SKIP')

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

prepare() {
	cd "$srcdir/${pkgname%-git}"
}

package() {
	cd "$srcdir/${pkgname%-git}"
	make DESTDIR="$pkgdir/" install
}