summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 726e0fc326591bb2d1835e56ca90fb8113e0637f (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: <xris_pop@yahoo.ca>
_pkgname=share-moe-paste
pkgname=$_pkgname-git
pkgver=0.8.3.r0.33f91319
pkgrel=1
pkgdesc="This is a command-line tool that makes a paste from a file, clipboard or standard input and uploads it to shr.moe"
arch=('any')
url="https://gitgud.io/rarity/share-moe-paste"
license=('custom:The Unlicense')
depends=('curl' 'xsel')
options=('!strip')
source=("git+https://gitgud.io/rarity/share-moe-paste.git")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./'
}

package() {
  cd "$srcdir/$_pkgname"
  install -Dm755 smp "$pkgdir"/usr/bin/smp
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$_pkgname/LICENSE
}

# vim:set ts=2 sw=2 et: