Results 1 to 9 of 9

Thread: Packaging help... for an Arch user

  1. #1
    Join Date
    Feb 2010
    Beans
    45
    Distro
    Ubuntu 11.04 Natty Narwhal

    Exclamation Packaging help... for an Arch user

    So, I've been using Chakra/Archlinux for quite some time now but some of the software I've created requires me to repackage ffmpeg for distributions other than Arch, so I was wondering: How do I package software for Ubuntu? Is there something like an Arch PKGBUILD for Ubuntu?

  2. #2
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

  3. #3
    Join Date
    Feb 2010
    Beans
    45
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Packaging help... for an Arch user

    Quote Originally Posted by oldos2er View Post
    So, there is no equivalent to a PKGBUILD in Ubuntu?

  4. #4
    Join Date
    Nov 2005
    Location
    Bordeaux, France
    Beans
    11,294
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Packaging help... for an Arch user

    Quote Originally Posted by stephenmac7 View Post
    So, there is no equivalent to a PKGBUILD in Ubuntu?
    Not everyone here is familiar with Arch. What does PKGBUILD do?
    「明後日の夕方には帰ってるからね。」


  5. #5
    Join Date
    Feb 2010
    Beans
    45
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Packaging help... for an Arch user

    Okay, I'll do my best to explain it here but there is a wiki page on it: https://wiki.archlinux.org/index.php/PKGBUILD

    Basically it's a text file that has information on the package (name, version, dependencies, description) and it has a list of commands on creating a folder called 'pkg' which is almost like a root system which is then compressed with the information by a script called makepkg. So, in reality the user could use makepkg and instead of installing the package file they could just use: cp -R --copy-contents pkg/* / as root and the files needed would be installed. An example is needed for clarification:

    Code:
    pkgname=todotxt-recur
    pkgver=1.02
    pkgrel=2
    pkgdesc='Addon for todotxt in order to create recurring tasks'
    arch=('i686' 'x86_64')
    url='https://github.com/paulroub/todo.txt-recurring-tasks'
    license=('none')
    depends=('perl' 'todotxt')
    source=(https://github.com/downloads/paulroub/todo.txt-recurring-tasks/Todotxt-Recur-$pkgver.tar.gz)
    sha1sums=('cafdd4361a1bcb7c70a0b8259952f10e01d7e643')
    
    
    build() {
      cd ${srcdir}/Todotxt-Recur-${pkgver}
      perl Makefile.PL INSTALLDIRS=vendor
      make
    }
    
    
    package() {
      cd ${srcdir}/Todotxt-Recur-${pkgver}
      make install DESTDIR=${pkgdir}
      rm -R $pkgdir/usr/bin
      install -Dm755 recur $pkgdir/usr/share/todotxt-addons/recur
    }
    Also, it doesn't really matter what commands are in build and which are in package. It's just to help people who read the file.
    Last edited by stephenmac7; May 31st, 2012 at 02:15 PM. Reason: it -> is

  6. #6
    Join Date
    Nov 2005
    Location
    Bordeaux, France
    Beans
    11,294
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Packaging help... for an Arch user

    Okay, kinda similar to Gentoo ebuilds or FreeBSD ports. No, there is nothing similat for Debian/Ubuntu. You have to either use checkinstall, or go the long way as described in the packaging guide.
    「明後日の夕方には帰ってるからね。」


  7. #7
    Join Date
    Feb 2010
    Beans
    45
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Packaging help... for an Arch user

    Okay... that's too bad. It's the only thing keeping me on an arch-based distro

  8. #8
    Join Date
    Jan 2008
    Beans
    1,534

    Re: Packaging help... for an Arch user

    Quote Originally Posted by stephenmac7 View Post
    So, I've been using Chakra/Archlinux for quite some time now but some of the software I've created requires me to repackage ffmpeg for distributions other than Arch, so I was wondering: How do I package software for Ubuntu? Is there something like an Arch PKGBUILD for Ubuntu?
    I have to ask, why would it ever be a good idea to repackage ffmpeg? You know it exposes all of its functionality via APIs. Why would you not just distribute an application using those libraries?

  9. #9
    Join Date
    Jan 2008
    Beans
    239

    Re: Packaging help... for an Arch user

    Quote Originally Posted by stephenmac7 View Post
    So, I've been using Chakra/Archlinux for quite some time now but some of the software I've created requires me to repackage ffmpeg for distributions other than Arch, so I was wondering: How do I package software for Ubuntu? Is there something like an Arch PKGBUILD for Ubuntu?
    Well, in Arch PKGBUILD holds all of the information.

    In Debian it's split between several files:
    Code:
    debian/control
    debian/rules
    debian/packagename.install
    debian/changelog
    ...

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •