You are not logged in.

#1 2013-12-13 05:57:39

iop
Member
Registered: 2013-12-13
Posts: 1

[SOLVED] Quarkcoin-qt, PKGBUILD created

Hi,

I have just created the PKGBUILD, .install, and .desktop files for Quarkcoin-qt. I modified the PKGBUILD for Litecoin and adapted it for Quark.

It worked for me.

If someone with the permissions want to upload it to the AUR, Here is the code:

PKGBUILD:

pkgname='quarkcoin-qt'
pkgver=0.8.3
pkgrel=2
arch=('x86_64')
url="http://www.qrk.cc/"
makedepends=('boost' 'automoc4' 'qrencode' 'miniupnpc')
license=('MIT')
pkgdesc="Peer-to-peer network based digital currency (QT)"
depends=(boost-libs qt4 miniupnpc qrencode)
conflicts=(quarkcoin)
install=quarkcoin-qt.install
source=("https://github.com/MaxGuevara/quark/archive/master.zip")
sha256sums=('8463507c854025d03b9cfcff076c5756a3e9b1bee12fb0dc4bd065176285cd4e')

build() {
  cd "$srcdir/quark-master"

  # and make qt gui
  qmake-qt4 USE_QRCODE=1 USE_UPNP=1
  make
}


package() {
  cd "../"
  install -Dm644 quarkcoin-qt.desktop "$pkgdir"/usr/share/applications/quarkcoin.desktop
  cd "$srcdir/quark-master"
  install -Dm755 quarkcoin-qt "$pkgdir"/usr/bin/quarkcoin-qt
  install -Dm644 share/pixmaps/bitcoin128.png "$pkgdir"/usr/share/pixmaps/quarkcoin128.png

  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

quarkcoin-qt.install:

post_install() {
    update-desktop-database -q
}

post_upgrade() {
    post_install $1
}

post_remove() {
    post_install $1
}

quarkcoin-qt.desktop:

[Desktop Entry]
Encoding=UTF-8
Name=Quarkcoin
Comment=Quarkcoin P2P Cryptocurrency
Comment[fr]=Quarkcoin, monnaie virtuelle cryptographique pair à pair
Comment[tr]=Quarkcoin, eşten eşe kriptografik sanal para birimi
Exec=/usr/bin/quarkcoin-qt
Terminal=false
Type=Application
Icon=/usr/share/pixmaps/quarkcoin128.png
MimeType=x-scheme-handler/quarkcoin;
Categories=Office;

Last edited by iop (2013-12-13 06:00:27)

Offline

#2 2013-12-13 06:08:12

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Quarkcoin-qt, PKGBUILD created

All you have to do is make an AUR account and you can upload it.

BUT please don't in it's current form. You're pulling a tarball of git master, so the pkgname should be suffixed with -git. Plus the checksum will change constantly, so you would need to change that to SKIP and have no checking at all. Really, you need to either do a git clone which does it's own checksumming (see VCS PKGBUILD Guidelines in the Wiki) or pull a tarball of a specific tag. If you need help with a pkgver function that makes sense, let us know.

Offline

Board footer

Powered by FluxBB