You are not logged in.

#1 2006-01-10 04:04:51

lydgate
Member
From: London, UK
Registered: 2006-01-10
Posts: 60

[new] bsflite (console aim client)

Hello, I switched from Slack last night so go easy on me.

bsflite is a great, lightweight console AIM client written in C by Claudio Leite.  It's very tiny, and has the most essential features--proxy support (which works with OTR), away message, profile, icon, and idle reporting features.

PKGBUILD and .install as well as package are here

Please tell me if I've done anything wrong!  There's no install directive so I just used mv, I think that should work.  Also tell me if I did the depends/makedepends right, I'm not totally sure how to tell.  Namcap seems to think it's ok.

PKGBUILD

# Contributor: lydgate
pkgname=bsflite
pkgver=0.81
pkgrel=1
pkgdesc="Minimalist terminal AIM-client written in C"
url="http://bsflite.sourceforge.net/"
license=""
depends=('glibc')
makedepends=('gcc')
conflicts=()
replaces=()
backup=()
install=bsflite.install
source=(http://easynews.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('d5ef0c9e5a544671d9af1db4ee7666b2')

build() {
  cd $startdir/src/$pkgname-$pkgver
  make || return 1
  mkdir -p $startdir/pkg/usr/bin
  mv $startdir/src/$pkgname-$pkgver/bsflite $startdir/pkg/usr/bin
  mkdir -p $startdir/pkg/etc
  mv $startdir/src/$pkgname-$pkgver/config-example $startdir/pkg/etc/bsflite-config-example
}

bsflite.install (i just thought people should know about the example config, there are a lot of options in there that are not listed anywhere else)

post_install() {
  /bin/cat << EOM

 --> Example config file placed in /etc/bsflite-config-example
 --> Move this to ~/.bsflite/config and edit it if desired

EOM
}

post_upgrade() {
  /bin/cat << EOM

 --> Config may have changed.  See /etc/bsflite-config-example

EOM
}

op=$1
shift
$op $*

Offline

#2 2006-01-10 05:46:48

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [new] bsflite (console aim client)

It's well done for a first PKGBUILD. big_smile
A few comments though:
1. makedepends=('gcc') is not necessary. gcc is a base package so it's assumed that every user has it.
2. You can clean up the PKGBUILD by removing uneeded fields like:

conflicts=()
replaces=()
backup=() 

3.  It is recommended to not use a specific sourceforge mirror. Use http://dl.sourceforge.net instead.
4. Instead of mv, you could use the install command:

install -D -m755 $startdir/src/$pkgname-$pkgver/bsflite $startdir/pkg/usr/bin/bsflite 
install -D -m644 $startdir/src/$pkgname-$pkgver/config-example $startdir/pkg/etc/bsflite-config-example

The -D options create the directories if they don't exist, the -m set the permissions: 755 for executables and 644 for regular files.

Also, once these corrections made, you might want to submit it to the AUR: http://aur.archlinux.org/

Offline

#3 2006-01-10 06:22:30

lydgate
Member
From: London, UK
Registered: 2006-01-10
Posts: 60

Re: [new] bsflite (console aim client)

Okay, I fixed those things (I think).  Here's my second try:

# Contributor: lydgate
pkgname=bsflite
pkgver=0.81
pkgrel=1
pkgdesc="Minimalist terminal AIM-client written in C"
url="http://bsflite.sourceforge.net/"
depends=('glibc')
install=bsflite.install
source=(http://dl.sourceforge.net/sourceforge/bsflite/$pkgname-$pkgver.tar.gz 
        http://dl.sourceforge.net/sourceforge/bsflite/config-example)
md5sums=(d5ef0c9e5a544671d9af1db4ee7666b2 
        be3b24f1e0a309498404b1430b205dc1)

build() {
  cd $startdir/src/$pkgname-$pkgver
  make || return 1
  install -D -m755 $startdir/src/$pkgname-$pkgver/bsflite $startdir/pkg/usr/bin/bsflite
  install -D -m644 $startdir/src/config-example $startdir/pkg/etc/bsflite-config-example
}

Offline

Board footer

Powered by FluxBB