Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Fixed rpm-org PKGBUILD

By: ducakar on Dec 13th, 2012  |  syntax: Bash  |  size: 1.25 KB  |  views: 43  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Author: Wintershade <Wintershade AT google mail DOT com>
  2. # Contributor: Konrad <konrad AT knauber DOT name>
  3. # Contributor: Luka Perkov <archlinux <at> lukaperkov <dOt> net>
  4. # Contributor: Fernando M <f <at> beford.net>
  5.  
  6. pkgname=rpm-org
  7. pkgver=4.10.2
  8. pkgrel=1
  9. pkgdesc="RPM Package Manager - RPM.org fork, used in major RPM distros"
  10. arch=('i686' 'x86_64')
  11. url=("http://www.rpm.org/")
  12. license=('GPL2')
  13. depends=('lua51' 'file' 'nss' 'popt' 'elfutils' 'db')
  14. makedepends=('python2')
  15. conflicts=('rpm' 'rpmextract')
  16. options=('!libtool')
  17. provides=("rpm=${pkgver}" 'rpmextract=1.0-4')
  18. source=("http://rpm.org/releases/rpm-4.10.x/rpm-${pkgver}.tar.bz2"
  19.         'rpmextract.sh')
  20.  
  21. md5sums=('a644aea351c9b3889bbaded5d6a377c9'
  22.          '1f7f4f3b3a93ff6d2f600c7751ae25ef')
  23.  
  24. build() {
  25.         cd "${srcdir}/rpm-${pkgver}"
  26.  
  27.         CPPFLAGS=`pkg-config nss --cflags` \
  28.         LUA_CFLAGS=`pkg-config lua5.1 --cflags` \
  29.         LUA_LIBS=`pkg-config lua5.1 --libs` \
  30.         PYTHON=python2 \
  31.         ./configure \
  32.           --prefix=/usr \
  33.           --sysconfdir=/etc \
  34.           --localstatedir=/var \
  35.           --with-external-db \
  36.           --enable-python
  37.         make
  38. }
  39.  
  40. package() {
  41.         cd "${srcdir}/rpm-${pkgver}"
  42.         make  install DESTDIR="${pkgdir}"
  43.         rmdir "${pkgdir}/var/tmp"
  44.         install -m755 "${srcdir}/rpmextract.sh" "${pkgdir}/usr/bin"
  45. }