2011-05-17 22:02:46 +00:00
|
|
|
pkgname=sabnzbd
|
2011-10-23 19:30:03 +00:00
|
|
|
_pkgname=SABnzbd
|
2012-10-13 22:32:56 +00:00
|
|
|
pkgver=0.7.4
|
2011-05-17 22:02:46 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A web-interface based binary newsgrabber with NZB file support"
|
2011-10-23 19:30:03 +00:00
|
|
|
url="http://www.sabnzbd.org"
|
|
|
|
arch=("any")
|
|
|
|
license=("GPL")
|
|
|
|
depends=("curl" "par2cmdline"
|
|
|
|
"python2" "python2-cheetah" "python2-feedparser" "python2-pyopenssl" "python2-yenc"
|
2012-09-09 14:11:13 +00:00
|
|
|
"sqlite" "unrar" "unzip" "xdg-utils")
|
2011-10-23 19:30:03 +00:00
|
|
|
install="${pkgname}.install"
|
|
|
|
backup=("etc/conf.d/${pkgname}" "opt/${pkgname}/${pkgname}.ini")
|
|
|
|
source=("http://downloads.sourceforge.net/sabnzbdplus/${_pkgname}-${pkgver}-src.tar.gz"
|
|
|
|
"${pkgname}" "${pkgname}.confd" "${pkgname}.init" "${pkgname}.desktop"
|
2012-09-09 14:11:13 +00:00
|
|
|
"addnzb.sh" "nzb-2.png" "sab2_64.png" "x-nzb.xml" "${pkgname}.service" "${pkgname}_systemd.confd" "${pkgname}.tmp")
|
2012-10-13 22:32:56 +00:00
|
|
|
md5sums=('6c5e24b4dc9fa3004e4724845afe2cae'
|
2012-09-09 14:11:13 +00:00
|
|
|
'48d60a1c626503c7fef1bc5374390513'
|
|
|
|
'7d7ae7cca08e90582587773da3b55de8'
|
|
|
|
'848c7b117388671f243bd0833ff41f89'
|
|
|
|
'f9bd5485072714b11f8c30a28024dc4d'
|
|
|
|
'c0d52ba8d47f731790cd717fde46b829'
|
|
|
|
'2a49c07b1e3e6448eabe92644315f983'
|
|
|
|
'fdc878dd0f6f25617e627b04409abbbd'
|
|
|
|
'11fb2cd1451e3725b08bfc2bd045be54'
|
|
|
|
'7c2971c330fc131e75ad55979231edff'
|
2012-10-13 22:32:56 +00:00
|
|
|
'321a56d66a971c833677a54bc3f1060d'
|
2012-09-09 14:11:13 +00:00
|
|
|
'1ced962fabe7f5392e32828429b93d04')
|
2011-05-17 22:02:46 +00:00
|
|
|
|
2011-10-23 19:30:03 +00:00
|
|
|
package() {
|
|
|
|
mkdir -p "${pkgdir}/opt/${pkgname}"
|
|
|
|
touch "${pkgdir}/opt/${pkgname}/${pkgname}.ini"
|
|
|
|
cp -rv "${srcdir}/${_pkgname}-${pkgver}/"* "${pkgdir}/opt/${pkgname}"
|
2011-05-17 22:02:46 +00:00
|
|
|
|
2011-10-23 19:30:03 +00:00
|
|
|
# Fix for issues with Python 3
|
|
|
|
find "${pkgdir}/opt/${pkgname}" -type f -exec sed -i 's/python/python2/g' {} \;
|
|
|
|
find "${pkgdir}/opt/${pkgname}" -type d -exec chmod 755 {} \;
|
|
|
|
find "${pkgdir}/opt/${pkgname}" -type f -exec chmod 644 {} \;
|
|
|
|
chmod 755 "${pkgdir}/opt/${pkgname}/${_pkgname}.py"
|
|
|
|
chmod 755 "${pkgdir}/opt/${pkgname}/Sample-PostProc.sh"
|
2011-05-17 22:02:46 +00:00
|
|
|
|
2011-10-23 19:30:03 +00:00
|
|
|
install -Dm755 "${srcdir}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
|
|
|
|
install -Dm755 "${srcdir}/${pkgname}.init" "${pkgdir}/etc/rc.d/${pkgname}"
|
|
|
|
install -Dm644 "${srcdir}/${pkgname}.confd" "${pkgdir}/etc/conf.d/${pkgname}"
|
2012-09-09 14:11:13 +00:00
|
|
|
install -Dm644 "${srcdir}/${pkgname}_systemd.confd" "${pkgdir}/etc/conf.d/${pkgname}_systemd"
|
|
|
|
install -Dm644 "${srcdir}/${pkgname}.tmp" "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
|
|
|
|
install -Dm644 "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
|
2011-10-23 19:30:03 +00:00
|
|
|
install -Dm755 "${srcdir}/${pkgname}.desktop" \
|
|
|
|
"${pkgdir}/usr/share/applications/${pkgname}.desktop"
|
|
|
|
install -Dm755 "${srcdir}/addnzb.sh" "${pkgdir}/opt/${pkgname}/addnzb.sh"
|
|
|
|
install -Dm644 "${srcdir}/nzb-2.png" "${pkgdir}/opt/${pkgname}/nzb-2.png"
|
|
|
|
install -Dm644 "${srcdir}/sab2_64.png" "${pkgdir}/opt/${pkgname}/sab2_64.png"
|
|
|
|
install -Dm770 "${srcdir}/x-nzb.xml" "${pkgdir}/opt/${pkgname}/x-nzb.xml"
|
2011-05-17 22:02:46 +00:00
|
|
|
}
|