# Maintainer: Damien Guihal # Maintainer: Rodrigo Bezerra pkgname=vdhcoapp pkgver=1.2.4 pkgrel=1 pkgdesc="Companion application for Video DownloadHelper browser add-on" arch=('x86_64') url="https://github.com/mi-g/vdhcoapp" license=('GPL2') depends=('ffmpeg') makedepends=('gulp' 'npm') options=(!strip) source=($pkgname-$pkgver.tar.gz::https://github.com/mi-g/vdhcoapp/archive/v${pkgver}.tar.gz vdhcoapp.patch vdhcoapp-install.hook vdhcoapp-remove.hook) sha256sums=('7d7a328c408ea3082cf0858f711f348e7012289ef9b54776788d9f9cd7c6cd5d' 'ab240d9d9fea27792d008eaffe14de5f798ced0938cc79351ed108185baf93a3' '9f8cbe84b2543738390b70d770551259c6db2b67235b7792e9094908cecbc955' '448ee36b350b6bcd304d33cf7638c13bda88d5086f2256e823d73ccc22e52ce0') prepare() { cd ${pkgname}-${pkgver} patch -Np2 -i "${srcdir}/vdhcoapp.patch" } build() { cd "${pkgname}-${pkgver}" npm install gulp } package() { cd "${pkgname}-${pkgver}" install -Dm755 bin/net.downloadhelper.coapp-* "${pkgdir}/usr/bin/vdhcoapp" install -Dm644 config.json "${pkgdir}/usr/share/vdhcoapp/config.json" install -dm755 "${pkgdir}/usr/lib/mozilla/native-messaging-hosts/" install -dm755 "${pkgdir}/etc/opt/chrome/native-messaging-hosts/" install -dm755 "${pkgdir}/etc/chromium/native-messaging-hosts/" install -Dm644 "${srcdir}/vdhcoapp-install.hook" "${pkgdir}/usr/share/libalpm/hooks/vdhcoapp-install.hook" install -Dm644 "${srcdir}/vdhcoapp-remove.hook" "${pkgdir}/usr/share/libalpm/hooks/vdhcoapp-remove.hook" } # vim:set ts=2 sw=2 et: