blob: 12c60744450f7f24ceaa9a1b4a9f1b53cc54f491 (
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
|
# Maintainer: Jah Way <jahway603 at protonmail dot com>
pkgname=monero-vanity-git
_pkgname=monero-vanity
pkgver=0.5.0.91ba6b1
pkgrel=1
pkgdesc='Monero Vanity Address Generator GUI/CLI'
url='https://github.com/hinto-janai/monero-vanity'
arch=('x86_64')
license=('custom')
makedepends=('git')
conflicts=('monero-vanity-bin')
provides=('monero-vanity')
source=("git+$url.git"
"monero-vanity.desktop")
sha512sums=('SKIP'
'978594ecf63f305b2162ce0316b8a783dfb0e161dad4fbfaac7425ef0346b55e772defa53eb112f5af99979db22c4082c9b70f0e6766df46330422aa9e2c2884')
# prepare external repo dependencies... needs to be fixed...
prepare() {
cd $_pkgname/external
rm -rf *
git clone https://github.com/hinto-janai/curve25519-dalek
git clone https://github.com/hinto-janai/monero-rs
}
build() {
cd $_pkgname
RUSTFLAGS="-C target-cpu=native" cargo build --release
}
package() {
install -Dm755 "${srcdir}/$_pkgname/target/release/$_pkgname" "$pkgdir/opt/$_pkgname/$_pkgname"
install -Dm644 "${srcdir}/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
install -Dm644 "${srcdir}/$_pkgname/images/icon.png" "$pkgdir/usr/share/pixmaps/monero-vanity.png"
install -Dm644 "${srcdir}/$_pkgname.desktop" "$pkgdir/usr/share/applications/$_pkgname.desktop"
# links to /usr/bin from /opt
install -d "${pkgdir}/usr/bin"
ln -s /opt/$_pkgname/$_pkgname "${pkgdir}/usr/bin"
}
|