summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorM0Rf302017-11-04 17:02:08 +0100
committerM0Rf302017-11-04 17:02:08 +0100
commit2175b6079b0ba2cebdc2f143265c11acd424ed12 (patch)
treea051fa16805c02887506c8c47f0cd76cc587130f /PKGBUILD
parent09c7064c52245c015b0c8454b9270b800fff64c7 (diff)
downloadaur-2175b6079b0ba2cebdc2f143265c11acd424ed12.tar.gz
openbazaar-git: some launcher cleanups and icons fixes
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 19 insertions, 14 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 02d4df48b6c..9c09fc9240c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,44 +2,48 @@
_pkgname=openbazaar
pkgname=${_pkgname}-git
-pkgver=v2.0.17.r14.gaf9cdbb1
+pkgver=v2.0.17.r16.g77be2641
pkgrel=1
pkgdesc="Front-end Electron application for talking with the OpenBazaar daemon (Latest devel version)"
arch=(any)
url="http://openbazaar.org"
license=('MIT')
depends=(electron)
-makedepends=(git npm asar)
+makedepends=(git npm)
+conflicts=('openbazaar')
source=(
"${_pkgname}::git+https://github.com/OpenBazaar/openbazaar-desktop.git"
- "${_pkgname}.sh"
- "${_pkgname}.desktop"
+ "${_pkgname}.js"
+ "${_pkgname}.desktop"
+ icons.patch
)
install=${_pkgname}.install
options=('!strip')
build(){
cd $srcdir/${_pkgname}
+ patch -Np1 -i ../icons.patch
npm install
npm run build
rm -rf {.eslint*,.travis*}
cp -rf prod/* js/
npm prune --production
- asar pack ../${_pkgname} ../${_pkgname}-next.asar
}
package(){
cd $srcdir
+ appdir=/usr/lib/
-msg2 "Installing Openbazaar data"
- install -Dm644 ${_pkgname}-next.asar $pkgdir/opt/${_pkgname}-next.asar
+ msg2 "Installing Openbazaar data"
+ install -d $pkgdir/$appdir
+ cp -r ${_pkgname} $pkgdir/$appdir${_pkgname}
-msg2 "Installing execution script"
- install -Dm755 ${_pkgname}.sh $pkgdir/usr/bin/${_pkgname}-next
+ msg2 "Installing execution script"
+ install -Dm755 ${_pkgname}.js $pkgdir/usr/bin/${_pkgname}
-msg2 "Installing icons and desktop menu entry"
- install -Dm644 ${_pkgname}/imgs/icon.png "$pkgdir"/usr/share/pixmaps/${_pkgname}-next.png
- install -Dm644 ${_pkgname}.desktop "$pkgdir"/usr/share/applications/${_pkgname}-next.desktop
+ msg2 "Installing icons and desktop menu entry"
+ install -Dm644 ${_pkgname}/imgs/icon.png $pkgdir/usr/share/pixmaps/${_pkgname}.png
+ install -Dm644 ${_pkgname}.desktop "$pkgdir"/usr/share/applications/${_pkgname}.desktop
}
pkgver() {
@@ -48,5 +52,6 @@ pkgver() {
}
md5sums=('SKIP'
- 'da45494abaae2de78bc1f7253facb653'
- 'c73725d3737122cca0197da8fedee48f')
+ '122a3e23d7ecfef0a82e756cb97c3e98'
+ 'f48876b52eee00c24abb7bbbb53d8e6c'
+ '90f70698f1593b1dda1349b1353451fd')