Skip to content

Instantly share code, notes, and snippets.

@bobpaul
Last active August 29, 2021 21: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 bobpaul/746374dea7469a85038f40f08815c108 to your computer and use it in GitHub Desktop.
Save bobpaul/746374dea7469a85038f40f08815c108 to your computer and use it in GitHub Desktop.
nzbget-ppscript-nzbtomedia-git with dependencies fixed.
# Maintainer: TwoLeaves < ohneherren at gmail dot com >
pkgname=nzbget-ppscript-nzbtomedia-git
pkgver=2627.f9dde627
pkgrel=1
arch=(any)
pkgdesc="Post-processing scripts to communicate with media managers."
url="https://github.com/clinton-hall/nzbToMedia"
license=('GPL3')
depends=('python')
makedepends=('git')
optdepends=('couchpotato' 'headphones' 'mylar-git' 'sickbeard' 'nzbget' 'sabnzbd'
'ffmpeg: to use the transcoding option')
install=install
_gitname=nzbToMedia
source=("git://github.com/clinton-hall/${_gitname}")
md5sums=('SKIP')
pkgver() {
cd "${_gitname}"
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
package() {
install -Dm644 "${_gitname}/license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
install -dm755 ${pkgdir}/usr/share/nzbget/ppscripts
cp -a ${_gitname}/* ${pkgdir}/usr/share/nzbget/ppscripts
}
@bobpaul
Copy link
Author

bobpaul commented May 9, 2017

After install, be sure to change ownership of the folders so sab can use the script:
sudo chown sabnzbd:sabnzbd /usr/share/nzbget/ppscripts

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