You are not logged in.

#1 2010-05-14 19:55:23

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

First AUR package...

I discovered a really great GTK based IRC client. http://loqui.good-day.net/

So I made this PKGBUILD:

# Maintainer: Dolores Portalatin <meskarune@gmail.com>

pkgname=loqui
pkgver=0.4.4
pkgrel=1
pkgdesc="A lightweight gtk+ IRC client"
arch=('i686' 'x86_64')
url="http://loqui.good-day.net/"
license=('GPL')
groups=()
depends=('gnet>=2.0.0' 'gtk+>=2.20.1'  'glib2' )
makedepends=()
source=(http://loqui.good-day.net/src/$pkgname-$pkgver.tar.gz)
noextract=()
md5sums=(f6f603354f3eb65421b9e9b93feb2eab) #generate with 'makepkg -g'

build() {
  cd $srcdir/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$pkgdir install || return 1
}

The only issue is that the program doesn't send a .desktop file to /usr/share/applications so that an icon shows up in application menu's

How would I get it to do that?  (I don't think the regular install creates this file)

Also, it would be great if anyone could let me know if anything is missing from the PKGBUILD. I want to submit it to AUR, and its the first time I've done that with a package.

Last edited by Meskarune (2010-05-14 19:57:15)


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 2010-05-14 19:58:48

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: First AUR package...

depends=('gnet>=2.0.0' 'gtk+>=2.20.1' )

gtk+ doesn't exist in our repos and it should be gtk2. If they didn't provide such .desktop you should create it and install it in /usr/share/applications


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2010-05-14 20:31:47

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: First AUR package...

make a .desktop file and install(1) it. And also submitt it upstream, the author might just happen to include it.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#4 2010-05-14 20:33:05

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: First AUR package...

You can also remove empty variables form the PKGBUILD (groups, makedepends, etc)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#5 2010-05-14 21:08:21

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

Re: First AUR package...

Ok, this seems to work:

# Maintainer: Dolores Portalatin <meskarune@gmail.com>

pkgname=loqui
pkgver=0.4.4
pkgrel=1
pkgdesc="A lightweight gtk+ IRC client"
arch=('i686' 'x86_64')
url="http://loqui.good-day.net/"
license=('GPL')
depends=('gnet>=2.0.0' 'glib2')
source=(http://loqui.good-day.net/src/$pkgname-$pkgver.tar.gz)
md5sums=(f6f603354f3eb65421b9e9b93feb2eab)

build() {
  cd $srcdir/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$pkgdir install || return 1
  install -Dm644 $srcdir/$pkgname-$pkgver/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
}

edit: Looks like this package exists in AUR already: http://aur.archlinux.org/packages.php?ID=6667
but it doesn't show up when I search for it in yaourt or clyde...?

Last edited by Meskarune (2010-05-14 21:25:08)


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

#6 2010-05-14 23:32:39

evr
Arch Linux f@h Team Member
Registered: 2009-01-23
Posts: 554

Re: First AUR package...

it showed up when i just searched for it in clyde, how were you searching for it?

either way, no harm in getting a little packaging experience under the belt.

Offline

#7 2010-05-14 23:49:11

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: First AUR package...

The configure line should have "|| return 1" in case it fails.

Offline

Board footer

Powered by FluxBB