summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 55a6a229380560f8c5cc68e562999697f9398dac (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=raritynetwork-screenshot-util
pkgname=$_pkgname-git
pkgver=3.4.3.r0.4c9d0361
pkgrel=1
pkgdesc="This is a command-line tool that takes a regular screenshot using either PNG, JPG, or a video capture using MP4, WebM, APNG and uploads it to Utils.Rarity.Network"
arch=('any')
url="https://gitgud.io/rarity/RarityNetwork-Screenshot-Util"
license=('custom:The Unlicense')
depends=('maim' 'slop' 'curl' 'xsel' 'mozjpeg-opt' 'zopflipng-git')
optdepends=('torsocks: upload images through Tor' 'ffmpeg: upload animated screenshots')
options=('!strip')
source=("git+https://gitgud.io/rarity/$_pkgname.git")
sha256sums=('SKIP')

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

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

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