summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 79ffc2533d2b1a83c524406974947ba77a806d42 (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
30
# Maintainer: Jeidnx <jeidnx@domainhier.de>

pkgname=coshr-git
pkgver=r1.b2103b7
pkgrel=1
pkgdesc="Easily share the output of your commands"
arch=("any")
url="https://github.com/Jeidnx/coshr"
license=('GPL')
depends=('wl-clipboard' 'bash')
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}"
	mkdir -p "$pkdir/usr/bin/"
	install -Dm755 "$srcdir/${pkgname%-git}/coshr.sh" "$pkgdir/usr/bin/coshr"
}