summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c33a89d9ab7335de9ba15d8f8fdf38d985f8c19e (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
# Maintainer: <xris_pop@yahoo.ca>
_pkgname=share-moe-paste
pkgname=$_pkgname-git
pkgver=0.8.7.r0.ddda6590
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')
optdepends=('torsocks: upload pastes through Tor')
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: