summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5c4f12421d337d0bb5eb6f92325c0b36bcab3934 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Maintainer: robertfoster
# Contributor: Sebastian Jug <seb AT stianj DOT ug>

pkgname=openbazaar-bin
_name=${pkgname%-bin}
pkgver=2.4.10
pkgrel=1
pkgdesc="OpenBazaar Client, Decentralized Peer to Peer Marketplace for Bitcoin -- Static binaries"
arch=('x86_64')
url="https://github.com/OpenBazaar/openbazaar-desktop"
license=('MIT')
depends=('desktop-file-utils' 'gconf' 'glibc' 'gtk2' 'libcap' 'libgcrypt' 'libnotify' 'libxtst' 'nodejs' 'nss' 'python' 'xdg-utils')
makedepends=('npm')
optdepends=('gnome-keyring' 'gvfs' 'libgnome-keyring' 'lsb-release')
conflicts=('openbazaar')
provides=('openbazaar')
install=$pkgname.install
source=("https://github.com/OpenBazaar/openbazaar-desktop/releases/download/v${pkgver}/openbazaar2_${pkgver}_amd64.deb"
"${_name}.desktop")

package() {
    tar -xf data.tar.xz -C $pkgdir
    
    chmod -R 755 $pkgdir/usr/
    
    install -Dm644 $pkgdir/usr/lib/openbazaar2/LICENSES.chromium.html $pkgdir/usr/share/licenses/${_name}/LICENSES.chromium.html
    
    cd $pkgdir
    rm -rf usr/share/lintian
    mv usr/lib/openbazaar2 usr/lib/openbazaar
    rm usr/bin/openbazaar2
    ln -sr /usr/lib/openbazaar/openbazaar2 $pkgdir/usr/bin/openbazaar
    cp $srcdir/${_name}.desktop usr/share/applications/
    rm usr/share/applications/openbazaar2.desktop
    mv usr/share/doc/openbazaar2 usr/share/doc/openbazaar
    
    cd $pkgdir/usr/lib/openbazaar/resources/app
    npm prune --production
    rm -rf ../openbazaar-go
    find . -name "example" -prune -exec rm -r '{}' \; \
    -or -name "examples" -prune -exec rm -r '{}' \; \
    -or -name "test" -prune -exec rm -r '{}' \; \
    -or -name "temp" -prune -exec rm -r '{}' \;
}

sha256sums=('9d9dee3ebf81d67a152bde53a11deaaf2a58e7277fe1decf7bf3e903160a47fe'
            '87272dfd5713f27753bd820d4173713b3d4212dbbebc25d9254e91d575a8fe0d')