Skip to content

Instantly share code, notes, and snippets.

@erikw
Last active December 12, 2021 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erikw/0f821e82bd9810ec7915145917bb063b to your computer and use it in GitHub Desktop.
Save erikw/0f821e82bd9810ec7915145917bb063b to your computer and use it in GitHub Desktop.
Work in progress update of https://aur.archlinux.org/packages/zscreen/
# Maintainer: Erik Westrup
# Reference on git checkout: https://man.archlinux.org/man/PKGBUILD.5#USING_VCS_SOURCES
pkgname=zscreen
pkgver=20160510
pkgrel=1
pkgdesc="Scrot and imgur/s3 upload zenity gui"
arch=('any')
url="https://github.com/ChrisZeta/Scrot-and-imgur-zenity-GUI"
_git_commit='e9d15e606a0d358f002d0ec45324069c5cff3c68'
source=("zscreen::git+https://github.com/ChrisZeta/Scrot-and-imgur-zenity-GUI#commit=${_git_commit}")
license=()
makedepends=('git')
md5sums=('SKIP')
depends=('bash' 'curl' 'scrot' 's3cmd' 'zenity')
provides=('zscreen' 'zimgur' 'zs3upload')
package() {
cd "$srcdir/${pkgname}/src"
install -Dm755 zimgur.sh "${pkgdir}/usr/bin/zimgur"
install -Dm755 zscreen.sh "${pkgdir}/usr/bin/zscreen"
install -Dm755 zs3upload.sh "${pkgdir}/usr/bin/zs3upload"
}
# vim:set ts=2 sw=2 et:
@micwoj92
Copy link

In package it needs cd "$srcdir/${pkgname}/src" and I'd switch version to 20160510 and in source point to latest commit as of now, so e9d15e606a0d358f002d0ec45324069c5cff3c68

@erikw
Copy link
Author

erikw commented Dec 11, 2021

@micwoj92 thanks a lot for the feedback. I found the manual for the git checkout now

https://man.archlinux.org/man/PKGBUILD.5#USING_VCS_SOURCES

and have updated the PKGBUILD above accordingly

@micwoj92
Copy link

Now everything looks fine to me, thanks for the updates!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment