diff options
author | loli | 2019-04-15 23:41:57 -0400 |
---|---|---|
committer | loli | 2019-04-15 23:41:57 -0400 |
commit | 7c96f3051552d3a981b72a3e683b5478c4ed1ba0 (patch) | |
tree | cafb452136b004c6a1917d7b7f7395a322500c7b | |
download | aur-7c96f3051552d3a981b72a3e683b5478c4ed1ba0.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..334c981f45e7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = shr-moe-screenshot-git + 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 shr.moe + pkgver = 1.0.1.r0.gfee0ca1 + pkgrel = 1 + url = https://git.sr.ht/~loli/shr-moe-screenshot + arch = any + license = custom:The Unlicense + depends = maim + depends = slop + depends = curl + depends = xsel + optdepends = torsocks: Upload images through Tor + optdepends = ffmpeg: Upload animated screenshots + optdepends = mozjpeg: Better jpeg compresion. Highly recomended + optdepends = zopflipng-git: Better png compresion + conflicts = raritynetwork-screenshot-util-git + replaces = raritynetwork-screenshot-util-git + options = !strip + source = git+https://git.sr.ht/~loli/shr-moe-screenshot + sha256sums = SKIP + +pkgname = shr-moe-screenshot-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2ced8e3524ff --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: <xris_pop@yahoo.ca> +_pkgname=shr-moe-screenshot +pkgname=$_pkgname-git +pkgver=1.0.1.r0.gfee0ca1 +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 shr.moe" +arch=('any') +url="https://git.sr.ht/~loli/shr-moe-screenshot" +license=('custom:The Unlicense') +depends=('maim' 'slop' 'curl' 'xsel') +replaces=('raritynetwork-screenshot-util-git') +conflicts=('raritynetwork-screenshot-util-git') +optdepends=('torsocks: Upload images through Tor' 'ffmpeg: Upload animated screenshots' 'mozjpeg: Better jpeg compresion. Highly recomended' 'zopflipng-git: Better png compresion') +options=('!strip') +source=("git+https://git.sr.ht/~loli/$_pkgname") +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: |