Skip to content

Instantly share code, notes, and snippets.

@notuxius
Last active May 2, 2017 04:20
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 notuxius/17ec95a4352b78dc5c4f8cb19ed33480 to your computer and use it in GitHub Desktop.
Save notuxius/17ec95a4352b78dc5c4f8cb19ed33480 to your computer and use it in GitHub Desktop.
PKGBUILD for lightscreen AUR package - needs testing - https://aur.archlinux.org/packages/lightscreen/
# Maintainer: Chris <christopher.r.mullins g-mail>
pkgname=lightscreen
pkgver=2.4
pkgrel=6
pkgdesc='Simple tool to automate the tedious process of saving and cataloging screenshots'
arch=('i686' 'x86_64')
url='http://lightscreen.com.ar/'
depends=('qt5-base'
'qt5-declarative'
'qt5-xmlpatterns'
'qt5-multimedia'
'qt5-x11extras')
license=('GPL')
source=("lightscreen-$pkgver.tar.gz::https://github.com/ckaiser/Lightscreen/archive/v$pkgver.tar.gz"
"UGlobalHotkey-231b10.zip::https://github.com/ckaiser/UGlobalHotkey/archive/231b10144741b29037f0128bb7a1cd7176529f74.zip"
"SingleApplication-c6378e.zip::https://github.com/ckaiser/SingleApplication/archive/c6378eec45a5fdf699b4d27fb4be22a190b2a184.zip"
"screenshot_cpp_h_fix.patch"
"lightscreen.png::https://raw.githubusercontent.com/notuxius/aur-fixes/master/lightscreen-some-aur-assets/lightscreen.png"
"lightscreen.desktop::https://raw.githubusercontent.com/notuxius/aur-fixes/master/lightscreen-some-aur-assets/lightscreen.desktop")
sha512sums=('4a16eb4e6a610809cb5d74e60779f708ad924bac8cceb71d60294034144b58997d772828a64e51c73351ba31f3a4d1dd65ea563f59c59172c66b0ee70f03f18d'
'444486f71c6cee80fc2b7bbd0b75335c1eefc8b8c949fb83438d2761c28c89fb345ad99b0195f8726c03984e30c46bf4788168927c28725beb3b31d0349e0778'
'ca3ab82c9a98180218afb0936b87b8f156def8ef4d84926930c81ef3c12ae66807d4f27b403bd01b6c8b1def5507ac9b47017b38c44ce7e5dd3119bc0dcce17b'
'67193adc30beee7e9fdb72bbcc5d06960ac2b4f7125f7924c9f4d43ea4459d8bf3a79db3f4f4fc2e0a888a298744a13030e1bc708b2693238aa9691ff7ee7e5f'
'96b625d82091d2ba07a2df7c51dc6c94df421c3ed478b049fa5ebe49eb9e147cda3db7d3a0e08cac95633ae9053f289d3d6e256aa743f4c486eeb9088a1583cb'
'77e4536e2e271acbea402144b705d6bbeafdea6dc821e782b02e8b0d9c048c27081187ce1302eeb7c27d59b3597125650b5e1d6e68af723650d1ae3f272b8480')
prepare() {
cd "${srcdir}"/"Lightscreen-${pkgver}"
patch -Np0 -i ../screenshot_cpp_h_fix.patch
cd "${srcdir}"
cp UGlobalHotkey-231b10144741b29037f0128bb7a1cd7176529f74/* "${srcdir}"/"Lightscreen-${pkgver}/tools/UGlobalHotkey"
cp SingleApplication-c6378eec45a5fdf699b4d27fb4be22a190b2a184/* "${srcdir}"/"Lightscreen-${pkgver}/tools/SingleApplication"
cd "${srcdir}"/"Lightscreen-${pkgver}"
}
build() {
cd "Lightscreen-$pkgver"
qmake-qt5
make
}
package() {
install -Dm755 "Lightscreen-$pkgver/lightscreen" "$pkgdir/usr/bin/lightscreen"
install -Dm755 "$srcdir/lightscreen.png" "$pkgdir/usr/share/pixmaps/lightscreen.png"
install -Dm755 "$srcdir/lightscreen.desktop" "$pkgdir/usr/share/applications/lightscreen.desktop"
}
@SylveonBottle
Copy link

sha512sums for lightscreen.desktop is incorrect

correct sha: 30f0c486ee0161a6272be89e326ac598d34e27cf9d99874be40f305b03ba19708e111aaf5b33fadf190da75d1528398718077650772088d6daec03e185ffec59

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