blob: d5630ddb1c78de5db35080262aaed65b6708b690 (
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
|
# Maintainer: Oirio Joshi <joshirio@protonmail.com>
pkgname=iotacooler
pkgver=1.1
pkgrel=3
pkgdesc="Cold transaction signer for IOTA"
arch=('x86_64')
url="https://github.com/joshirio/iota-cooler"
license=('MIT')
depends=('qt5-base' 'qt5-svg' 'qt5-imageformats')
makedepends=('git' 'nodejs' 'npm')
source=("https://github.com/joshirio/iota-cooler/releases/download/v$pkgver/$pkgname-$pkgver-src.tar.gz")
md5sums=('e15d948e8796f0448bcebea2c03aa049')
options=('!strip') #skip because iotacooler-smidgen doesn't work: 'pkg: failed to read file'
build() {
# iotacooler
git clone https://github.com/joshirio/Qt-AES.git utils/Qt-AES/
qmake-qt5 -config release
make
# iotacooler-smidgen
git clone --branch iotacooler-v$pkgver https://github.com/joshirio/iota-cooler-smidgen.git
npm install pkg
cd iota-cooler-smidgen/
npm install
node ../node_modules/pkg/lib-es5/bin.js . --target node10-linux -o iotacooler-smidgen #node10 last known working version
}
package() {
cd "$srcdir"
# Binaries
install -Dm755 "$srcdir/iota-cooler" "${pkgdir}/usr/bin/iota-cooler"
install -Dm755 "$srcdir/iota-cooler-smidgen/iotacooler-smidgen" "${pkgdir}/usr/bin/iotacooler-smidgen"
# Icons and desktop files
install -d "${pkgdir}/usr/share/"
cp -R "$srcdir/stuff/deployment/linux/appimage/usr/share/applications/" "${pkgdir}/usr/share/"
cp -R "$srcdir/stuff/deployment/linux/appimage/usr/share/pixmaps/" "${pkgdir}/usr/share/"
# Copy license
install -Dm644 "$srcdir/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|