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
On Thu, 26 Aug 2010 02:56:48 -0500 Nathan O <ndowens.aur@gmail.com> wrote:
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')
This doesn't look like it would work. Have you tired building it in a clean chroot? You probably need at least "makedepends=('gtk2')" to build a GUI against gtk. Also you might want to split of a package function and even think about building a split package, although this prohibits AUR distribution for now. Jinks
On Thu, Aug 26, 2010 at 4:34 PM, Alexander Duscheleit <jinks@archlinux.us>wrote:
On Thu, 26 Aug 2010 02:56:48 -0500 Nathan O <ndowens.aur@gmail.com> wrote:
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')
This doesn't look like it would work. Have you tired building it in a clean chroot? You probably need at least "makedepends=('gtk2')" to build a GUI against gtk.
Also you might want to split of a package function and even think about building a split package, although this prohibits AUR distribution for now.
Jinks
I wasn't sure if I could do this or not. I figured since it was from the same source code, that I might be able to do something similar.
participants (2)
-
Alexander Duscheleit
-
Nathan O