You are not logged in.

#1 2014-05-16 18:48:33

oliver
Member
Registered: 2007-12-12
Posts: 448

any problems with this pkgbuild?

This is the first time I'm attempting this so I've picked something I think looks nice and easy

# Maintainer: oliver <ohemming@gmail.com>

pkgname=compute
pkgver=1.0.4
pkgrel=1
pkgdesc="compute is command-line program which performs simple calculation on input files"
arch=('i686' 'x86_64')
url="http://compute.teamerlich.org/"
license=('GPL3')
depends=('gperf')
source=("https://s3.amazonaws.com/agordon/compute/src/${pkgname}-${pkgver}.tar.gz")
md5sums=('8b8634e10d8bde512c17ca0f1f097583')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir/" install
}

Couple of questions:
1) does anything stand out as missing or wrong?
2) how do pkg maintainers keep up to date on upstream changes?  Is there another pkg out there that periodically checks for them?

Thanks

Offline

#2 2014-05-16 18:57:49

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: any problems with this pkgbuild?

Looks good to me except that gperf is a makedepends, and I'm not sure it is needed after that.  I have the package installed and removed gperf without any negative side effects.

For question 2 - you either keep an eye out, or just wait for a user to flag your package out of date - the second way is much easier.  As long as you respond promptly to such a flag, no body would mind at all.  If it's out of date but never flagged ... then obviously it isn't bothering anyone wink

I do prefer vcs builds myself (this has a git version available) but this may not make great general advice.

EDIT: in response to the below - this was an additional "oh nice" when I built this.  It doesn't depend on anything that is not in the base group.

Last edited by Trilby (2014-05-16 19:00:38)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2014-05-16 18:58:50

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: any problems with this pkgbuild?

At first glance it seems fine... are you sure about the only dependency (I am not implying otherwise)?  Only way I know to keep up on new version is to manually check and update as needed.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2014-05-16 19:08:43

oliver
Member
Registered: 2007-12-12
Posts: 448

Re: any problems with this pkgbuild?

graysky wrote:

At first glance it seems fine... are you sure about the only dependency (I am not implying otherwise)?  Only way I know to keep up on new version is to manually check and update as needed.

yeah - like Trilby said, the only things I saw there would be part of base-devel

Trilby - thanks - I'll swap depends for makedepends

Offline

#5 2014-05-16 20:51:34

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: any problems with this pkgbuild?

If the package is on sourceforge you can subscribe to the RSS feed for new downloadable files for example. Projects also often have a blog where new releases are announced (RSS feed, again). Or web forums, mailing lists… And sometimes twitter if you can bear it.

Offline

#6 2014-05-16 22:09:35

oliver
Member
Registered: 2007-12-12
Posts: 448

Re: any problems with this pkgbuild?

thanks for the advice everyone... PKGBUILD is now in AUR

Offline

#7 2014-06-07 20:16:17

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: any problems with this pkgbuild?

Very minor issue: we normally try to avoid repeating the pkgname in the pkgdesc to keep descriptions short.

Offline

#8 2014-06-08 00:22:39

oliver
Member
Registered: 2007-12-12
Posts: 448

Re: any problems with this pkgbuild?

thanks... I'll modify it if/when an update comes from upstream unless you think it deserves immediate attention

Offline

Board footer

Powered by FluxBB