You are not logged in.

#1 2011-07-25 11:55:37

Meskarune
Member
From: Helsinki, Finland
Registered: 2009-03-21
Posts: 361
Website

Grumblr : gtk tumblr client

I am trying to make a PKGBUILD for Grumblr : http://themactep.com/grumblr/

grumblr_text.png

The github is located here: https://github.com/themactep/grumblr

Here is what I have so far:

# Contributor: Meskarune <meskarune@gmail.com>

pkgname=Grumblr-git
pkgver=2.4.2
pkgrel=1
pkgdesc="A GTK tumblr blog client, post from your desktop"
url="http://themactep.com/grumblr/"
depends=('ruby ruby-gtk2 rubygems1.8 ruby-rest-client libxml-ruby')
makedepends=('git')
license=('GPL')
arch=('i686' 'x86_64')

_gitroot="https://github.com/themactep/grumblr.git"
_gitname="grumblr"

build() {
    cd $srcdir

    msg "Connecting to GIT server..."

    if [ -d $srcdir/$_gitname ] ; then
        cd $_gitname && git pull origin
        msg "The local files are updated."
    else
        git clone $_gitroot
    fi

    msg "GIT checkout done or server timeout"
    msg "Starting build..."

    
}

I am not too familiar with installing ruby programs, so any help would be greatly appreciated. I'm also not sure if I got all the depends. Thanks.

edit:

The instructions for installation from the readme are:

$ sudo gem install grumblr

  Change directory to the installed gem folder (may vary) and run
  setup script to copy images and a launcher to their places:

  $ cd /usr/lib/ruby/gems/1.8/gems/grumblr-2.4.2
  $ sudo ruby setup.rb

so install would look something like this?

# Install grumblr
  gem install "$pkgname-$pkgver.gem'
  cd "/usr/lib/ruby/gems/1.8/gems/$pkgname-$pkgver"
  ruby setup.rb

Last edited by Meskarune (2011-07-26 17:45:45)


Homepage  | Arch Linux Women | Arch Linux Classroom
Acer Aspire E5-575G-53VG:
Intel Dual-Core i5-6200U 2.3 GHz; Skylake rev3 | 8GB DDR4 ram | Intel HD Graphics 520 + NVIDIA GeForce 940MX
Qualcomm Atheros QCA9377 802.11ac | Realtek RTL8111/8168/8411 Gigabit Ethernet Controller

Offline

#2 2011-08-13 05:40:04

jomasti
Member
From: USA
Registered: 2010-08-17
Posts: 96

Re: Grumblr : gtk tumblr client

You may have moved on from this, but I'll try to give an answer anyway.

Since you're downloading from the git repo, you will have to build the gem first using 'gem build' and the gemspec. Then, you have to install the gem. You can take a look at how to do that by viewing the rubygem pkgbuild example. The abs package installs example PKGBUILDs into /usr/share/pacman. The setup.rb is best ran via an install file, I believe. At least, that was easiest for me when testing all of this info. The install file should also remove the files that are copied by setup.rb when the package is removed. Also, the dependencies should all be single quoted individually instead of the whole line being single quoted.

I guess I am kind of being vague, but I didn't want to take all the fun out of it by just posting my PKGBUILD. However, I could do that if desired.

Hope it helps.

Offline

Board footer

Powered by FluxBB