[aur-general] cpige

Nathan O ndowens.aur at gmail.com
Thu Aug 26 03:56:48 EDT 2010


I have cpige-cli and cpige-gui, they are from the same sources. I think I
figured out how to put them together instead of seperate packages, can
somebody tell me if the following is correct:

# Contributor: Nathan Owe <ndowens.aur at gmail dot com>
pkgname=cpige
pkgver=1.5
pkgrel=2
pkgdesc="The Frontend version of cpige"
arch=('i686')
url="http://ed.zehome.com/?page=cpige-en"
license=('GPL')
optdepends=('gtk2: GUI support')
source=(http://ed.zehome.com/cpige/cpige-${pkgver}.tar.gz${pkgname}.desktop)
md5sums=('ad5b8f70d254a261cfb3fda586d66448'
         '42845d95fa350d1a8025109e0c65b2de')

build() {
  ##GUI Version##
   cd ${srcdir}/cpige-${pkgver}/gui/
  ./configure --prefix=/usr
  make
 install -d ${pkgdir}/usr/{bin,share/{${pkgname},applications,pixmaps}}
 install  *.{c,h,png,po,ico}  ${pkgdir}/usr/share/$pkgname/
 install -Dm755 cpigeGUI ${pkgdir}/usr/bin/cpigegui
 install -Dm644 cpigeGUI.png ${pkgdir}/usr/share/pixmaps/cpigeGUI.png
 install -Dm644 ${srcdir}/${pkgname}.desktop
${pkgdir}/usr/share/applications/${pkgname}.desktop

##CLI Version##
 cd ${srcdir}/cpige-${pkgver}
  make
  install -d ${pkgdir}/{etc,usr/{bin,share/{cpige,man/man1}}}
  install -Dm644 cpige.conf.example ${pkgdir}/etc/cpige.conf
  install -Dm644 cpige.1.gz ${pkgdir}/usr/share/man/man1/
  install -Dm755 cpige ${pkgdir}/usr/bin/cpige

}

If it is correct, I would like cpige-cli
http://aur.archlinux.org/packages.php?ID=28087 and cpige-gui
http://aur.archlinux.org/packages.php?ID=28088 deleted.

Thanks


More information about the aur-general mailing list