Skip to content

Instantly share code, notes, and snippets.

@ShapeShifter499
Created September 12, 2016 10:43
Show Gist options
  • Save ShapeShifter499/b504e847206ac4411e1107d67fc03da0 to your computer and use it in GitHub Desktop.
Save ShapeShifter499/b504e847206ac4411e1107d67fc03da0 to your computer and use it in GitHub Desktop.
My PKGBUILD
# Maintainer: Raansu <[email protected]>
pkgname=verge-git
_gitname=verge
pkgver=v0.10.4.0.6.g623f20b
pkgrel=1
pkgdesc="VERGE is the privacy focused & secure alternative to other cryptocurrencies. (git version)"
arch=('i686' 'x86_64')
url="http://vergecurrency.com/"
license=('MIT')
depends=('qt5' 'gcc-libs' 'miniupnpc' 'openssl' 'db4.8' 'protobuf')
makedepends=('pkg-config' 'git' 'boost-libs' 'boost' 'gcc' 'qrencode' 'make' 'automoc4' 'automake' 'autoconf' 'libtool')
provides=('verge' 'verge-qt' 'verged' 'verge-bin' 'verge-daemon')
conflicts=('verge' 'verge-qt' 'verged' 'verge-bin' 'verge-daemon')
source=('git://github.com/vergecurrency/VERGE.git')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_gitname"
git describe --tags| sed "s/-/./g"
}
prepare() {
cd "$srcdir/$_gitname"
msg2 'Fix verge-qt.desktop, don't conflict with bitcoin'
grep -rl Icon contrib/debian/verge-qt.desktop | xargs sed -i 's/bitcoin80/vergecurrency80/g'
}
build() {
cd "$srcdir/$_gitname"
./autogen.sh
./configure
make
}
package() {
# install verge-qt client
msg2 'Installing verge-qt...'
install -Dm755 "$srcdir/$_gitname/src/qt/verge-qt" "$pkgdir/usr/bin/verge-qt"
install -Dm644 "$srcdir/$_gitname/share/pixmaps/bitcoin80.xpm" "$pkgdir/usr/share/pixmaps/vergecurrency80.xpm"
desktop-file-install -m 644 --dir="$pkgdir/usr/share/applications/" "$srcdir/$_gitname/contrib/debian/verge-qt.desktop"
# install verge-daemon
msg2 'Installing verge-daemon...'
install -Dm755 "$srcdir/$_gitname/src/verged" "$pkgdir/usr/bin/verged"
install -Dm644 "$srcdir/$_gitname/contrib/debian/examples/novacoin.conf" "$pkgdir/usr/share/doc/$pkgname/examples/verge.conf"
install -Dm644 "$srcdir/$_gitname/contrib/debian/manpages/verged.1" "$pkgdir/usr/share/man/man1/verged.1"
install -Dm644 "$srcdir/$_gitname/contrib/debian/manpages/verge.conf.5" "$pkgdir/usr/share/man/man5/verge.conf.5"
# install license
install -D -m644 "$srcdir/$_gitname/COPYING" "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment