mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
48 lines
2.3 KiB
Bash
48 lines
2.3 KiB
Bash
pkgname=sabnzbd
|
|
_pkgname=SABnzbd
|
|
pkgver=0.7.11
|
|
pkgrel=1
|
|
pkgdesc="A web-interface based binary newsgrabber with NZB file support"
|
|
url="http://www.sabnzbd.org"
|
|
arch=("any")
|
|
license=("GPL")
|
|
depends=("curl" "par2cmdline"
|
|
"python2" "python2-cheetah" "python2-yenc"
|
|
"sqlite" "unrar" "unzip")
|
|
optdepends=("xdg-utils: registration of .nzb files" "python2-feedparser: rss support" "python2-pyopenssl: ssl support")
|
|
install="${pkgname}.install"
|
|
backup=("etc/conf.d/sabnzbd" "opt/${pkgname}/${pkgname}.ini")
|
|
source=("http://downloads.sourceforge.net/sabnzbdplus/${_pkgname}-${pkgver}-src.tar.gz"
|
|
"${pkgname}" "${pkgname}.desktop" "addnzb.sh" "nzb-2.png" "sab2_64.png" "x-nzb.xml" "${pkgname}.service" "${pkgname}.confd")
|
|
md5sums=('ce87a787b6275a627ef9b37e10b13a66'
|
|
'48d60a1c626503c7fef1bc5374390513'
|
|
'f9bd5485072714b11f8c30a28024dc4d'
|
|
'69b9bcbcf67ff3e7a4cdd9f26e001341'
|
|
'2a49c07b1e3e6448eabe92644315f983'
|
|
'fdc878dd0f6f25617e627b04409abbbd'
|
|
'11fb2cd1451e3725b08bfc2bd045be54'
|
|
'd64b7a6609279a6ba1fcb04e8f36dcd1'
|
|
'8fc2607a7961fc643ef4f6640166322a')
|
|
|
|
package() {
|
|
mkdir -p "${pkgdir}/opt/${pkgname}"
|
|
touch "${pkgdir}/opt/${pkgname}/${pkgname}.ini"
|
|
cp -rv "${srcdir}/${_pkgname}-${pkgver}/"* "${pkgdir}/opt/${pkgname}"
|
|
|
|
# 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"
|
|
|
|
install -Dm755 "${srcdir}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
|
|
install -Dm644 "${srcdir}/${pkgname}.confd" "${pkgdir}/etc/conf.d/${pkgname}"
|
|
install -Dm644 "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
|
|
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"
|
|
}
|