diff options
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e8f36bc0cfca --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = coshr-git + pkgdesc = Easily share the output of your commands + pkgver = r1.b2103b7 + pkgrel = 1 + url = https://github.com/Jeidnx/coshr + arch = any + license = GPL + makedepends = git + depends = wl-clipboard + depends = bash + provides = coshr + conflicts = coshr + source = git+https://github.com/Jeidnx/coshr + md5sums = SKIP + +pkgname = coshr-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..79ffc2533d2b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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" +} |