summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ebcf19fb5dc7e6896124b4222c371481ade04c3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: Mario Ray MahardhikZza <leledumbo_cool@yahoo.co.id>

pkgname=vdhcoapp-bin
pkgver=1.2.4
pkgrel=2
pkgdesc="Companion application for Video DownloadHelper browser add-on, precompiled binary version"
arch=('i686' 'x86_64')
url="https://github.com/mi-g/vdhcoapp"
license=('GPL2')
depends=('ffmpeg' 'orc')
makedepends=()
options=('!strip') # IMPORTANT! DO NOT REMOVE THIS, OTHERWISE THE BINARY WILL BE BROKEN!
source=(https://github.com/mi-g/vdhcoapp/releases/download/v${pkgver}/net.downloadhelper.coapp-${pkgver}-1_amd64.deb
        vdhcoapp-install.hook
        vdhcoapp-remove.hook)
sha256sums=('36306d53b5258cb1a588ddec73851208398c8d3f5d8c6389d45a9cbb0493e383'
            'a2b56e6ae3f7f8933e20762baa90e69f63f0802b2e6d213b51e0bc68843e5d27'
            '3287859986d67e15e269965676bf9c75d1e853ea0ec97695811072fb8f10a7a8')

prepare() {
  rm control.tar.gz
  rm debian-binary
  mkdir -p ${srcdir}/${pkgname}
  tar xf data.tar.gz -C ${pkgname}
}

package() {
  cp -Rfp ${srcdir}/${pkgname}/* ${pkgdir}/
  mkdir -p ${pkgdir}/usr/bin
  ln -s /opt/net.downloadhelper.coapp/bin/net.downloadhelper.coapp-linux-64 ${pkgdir}/usr/bin/vdhcoapp
}