DeLi(cate) Forum
PKGBUILD files - Printable Version

+- DeLi(cate) Forum (http://delicate-linux.net/forum)
+-- Forum: DeLi(cate) Linux [english only] (/forumdisplay.php?fid=3)
+--- Forum: Development (/forumdisplay.php?fid=6)
+--- Thread: PKGBUILD files (/showthread.php?tid=74)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33


RE: PKGBUILD files - tavvva - 03-09-2012 02:45 PM

(03-09-2012 12:48 PM)Compact Wrote:  
(03-09-2012 12:26 PM)tavvva Wrote:  We could do something like meta-package, but I'm not aware of any missing things .... maybe binutils, gcc, srcget, make, patch, libtool/autotools ... ?

Whoo. Thats a good question. Hoped you knew that better than me ? But perhaps
it's also good to include the following as far as not already installed with a fresh install ?
- fakeroot
- bison
- flex
- cmake
- automake
- autoconf
- wget
- patchutils
- sed
- tar
But I'm still not sure anything is missing then ?


All packages should have these in the makedepends list .... I know they're often missing. I never needed to remember them because if the build fails I can easily figure out what's missing and install it. But I can imagine it could be a problem for newcomers. Let's create something like delicate-packager package and put all of the above in the list of dependencies, whilst the package would be dummy.


RE: PKGBUILD files - tavvva - 03-09-2012 07:32 PM

(03-09-2012 03:08 PM)Compact Wrote:  I hope, you too, think its usefull. And that it will invite newcomers more easily to start compiling.

We have currently "ONLY" several thousands of unique downloaders and just a part of them probably really continues using DeLi(cate). And if you multiply it by average percentage of users willing to contribute, then we're already over the limit right now Big Grin It's probably caused by insufficient advertisement. But first I'd like to have at least the 0.1 final release done. You know ... It's maybe better to make the basic stuff working better before we offer that to people. They may get easily discouraged and then never ever try it again.


RE: PKGBUILD files - tavvva - 03-12-2012 07:07 PM

(12-31-2011 01:31 PM)nl2stk Wrote:  A clipboard manager, no 'beautycontest-winner', but it works.

seems ok .... I just found GPL icons and added them + desktop files.


RE: PKGBUILD files - tavvva - 03-12-2012 07:09 PM

Guys, please ... try to find some time and add all your packages in the Packages (Applications) section of the forum ... of course only the missing ones ...


RE: PKGBUILD files - nl2stk - 03-13-2012 12:03 AM

(03-12-2012 07:09 PM)tavvva Wrote:  Guys, please ... try to find some time and add all your packages in the Packages (Applications) section of the forum ... of course only the missing ones ...

I believe that I've done 'my' job Smile


RE: PKGBUILD files - nl2stk - 03-13-2012 06:01 PM

Streamtuner
---> Needs taglib library (it's the first PKGBUILD + patchfile)
---> A musicplayer (XMMS will do)
Note: I don't know why but the helpfile seems to be missing but it's very easy to work with.

taglib - pkgbuild

Code:
# Maintainer: theo - nl2stk
# Thanks to: Andrea Scarpino

pkgname=taglib
pkgver=1.7
pkgrel=1
pkgdesc="A Library for reading and editing the meta-data of several popular audio formats"
url="http://developer.kde.org/~wheeler/taglib.html"
license=('GPL2')
depends=('bash' 'zlib' 'gcc')
makedepends=('cmake' 'pkgconfig')
source=("http://developer.kde.org/~wheeler/files/src/$pkgname-$pkgver.tar.gz"
        'ape-idev2.patch')
options=('!libtool')
md5sums=('6a7e312668f153fa905a81714aebc257' 'c7c165d99acf01456351ba39ff7056cb')

build() {
  cd "${srcdir}"/${pkgname}-${pkgver}
  patch -p1 -i "${srcdir}"/ape-idev2.patch

  cd "${srcdir}"
  mkdir build
  cd build
  cmake ../${pkgname}-${pkgver} \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release \
    -DWITH_MP4=ON \
    -DWITH_ASF=ON
  sed -i "s/CC=gcc/CC=gcc -march=i386/g" Makefile
  make || return 1
  make DESTDIR="${pkgdir}" install
# Remove the libtool stuff
find ${pkgdir} -depth | grep "\.la" | while read libtool_file ;do
rm -f $libtool_file
done
}

---patchfile: ape-idev2.patch

Code:
diff -Nur taglib-1.7.orig/taglib/ape/apeproperties.cpp taglib-1.7/taglib/ape/apeproperties.cpp
--- taglib-1.7.orig/taglib/ape/apeproperties.cpp    2011-03-12 00:15:38.000000000 +1100
+++ taglib-1.7/taglib/ape/apeproperties.cpp    2011-07-29 21:19:45.984345060 +1000
@@ -137,7 +137,7 @@
   long ID3v2OriginalSize = 0;
   bool hasID3v2 = false;
   if(ID3v2Location >= 0) {
-    ID3v2::Tag tag(d->file, ID3v2Location, 0);
+    ID3v2::Tag tag(d->file, ID3v2Location);
     ID3v2OriginalSize = tag.header()->completeTagSize();
     if(tag.header()->tagSize() > 0)
       hasID3v2 = true;

----------------------------------------------------------

Streamtuner.

There are a lot of patches and diff files.
I've included them into the tar file with the xpm files.
Otherwise (if it isn't already) a very messy message

Code:
# Maintainer: theo - nl2stk
# Thanks to: Andreas Radke

pkgname=streamtuner
pkgver=0.99.99
pkgrel=1
pkgdesc="A stream directory browser"
url="http://www.nongnu.org/streamtuner/"
license=('custom')
depends=('taglib' 'libxml2' 'gtk2' 'curl' 'pygtk')
source=(http://savannah.nongnu.org/download/streamtuner/$pkgname-$pkgver.tar.gz \
        http://savannah.nongnu.org/download/streamtuner/streamtuner-0.99.99-live365.diff \
        http://savannah.nongnu.org/download/streamtuner/streamtuner-0.99.99-pygtk-2.6.diff
    streamtuner-0.99.99-shoutcast.diff
    shoutcast-redesign-patch.diff
        ${pkgname}_16x16.xpm
        ${pkgname}_32x32.xpm)
options=('!libtool' '!emptydirs')
md5sums=('2027b7c34e85b594524b0b4351c14362' '8aa1994a849b05d2b8fffbda702b8a25'\
         '7aff45a41c60358cb2332c7ce644f661' 'd695e276ad30573ac9ff520216bdf869'\
         'd2defc49df5ad2a173adb512e643f2e1' 'b19890274f75fb62163a2216e786a596'\
         'e989737866349f7f70e0cc2356fac9ff')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  patch -p0 -i ${srcdir}/streamtuner-0.99.99-live365.diff
  patch -p0 -i ${srcdir}/streamtuner-0.99.99-pygtk-2.6.diff
  # fix http://bugs.archlinux.org/task/10308
  patch -p0 -i ${srcdir}/streamtuner-0.99.99-shoutcast.diff
  # fix http://bugs.archlinux.org/task/11463
  patch -p1 -i ${srcdir}/shoutcast-redesign-patch.diff
  
    
  ./configure --prefix=/usr --host=i386-pc-linux-gnu --build=i386-pc-linux-gnu
  make || return 1
  make prefix=${pkgdir}/usr install

  #Add license file
  install -Dm0644 ${srcdir}/${pkgname}-${pkgver}/COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING

  #Add the xpm files (desktop file and icon.png are already in it)
  install -Dm 644 $srcdir/${pkgname}_32x32.xpm $pkgdir/usr/share/pixmaps/${pkgname}_32x32.xpm
  install -Dm 644 $srcdir/${pkgname}_16x16.xpm $pkgdir/usr/share/pixmaps/${pkgname}_16x16.xpm
  
  # Remove the libtool stuff
find ${pkgdir} -depth | grep "\.la" | while read libtool_file ;do
rm -f $libtool_file
done
}



RE: PKGBUILD files - delix - 03-15-2012 07:06 PM

CALCURSE -- a concole PIM

Code:
# Maintainer: delix
# Thanks to: Christian Stankowic <info at stankowic hypen development dot net>

pkgname=calcurse
pkgver=2.9.2
pkgrel=1
pkgdesc="Personal organizer using ncurses"
url="http://www.calcurse.org"
arch=('i486')
license=('BSD')
depends=('ncurses' 'libintl')
optdepends=()
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=("http://calcurse.org/files/calcurse-${pkgver}.tar.gz")
md5sums=('5cb7d9c9edddc551fc62c9c5733591c5')

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

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

# vim:set ts=2 sw=2 et:

I took the file from the ConnOS INCOMING folder, so it is not tested much


RE: PKGBUILD files - nl2stk - 03-15-2012 10:58 PM

(03-15-2012 07:06 PM)delix Wrote:  CALCURSE -- a concole PIM

That's a very nice one! :]
Thanks for sharing


RE: PKGBUILD files - tavvva - 03-16-2012 09:51 AM

(03-16-2012 09:33 AM)Compact Wrote:  
(03-15-2012 07:06 PM)delix Wrote:  CALCURSE -- a concole PIM
I took the file from the ConnOS INCOMING folder, so it is not tested much

Please Delix. Arch nor Connochaet PKGBUILDs work for Delicate.
Did you read our forum or manual before you posted your Delicate PKGBUILD ??

This forum already contains too much information for one to read that all. I believe delix is willing to read that if you give him a direct link to the right howto :]

We should really have a separate forum section or wiki ... that would make the things easier ...


RE: PKGBUILD files - tavvva - 03-16-2012 10:19 AM

I just enhanced the FAQ category to contain howtos and a drafts section writable by members ...

Maybe we should start filtering the info and put it there ....