Don't like ads? PRO users don't see any ads ;-)
Guest

lib32-gcr-3.6.2-2: PKGBUILD

By: jtts on Nov 13th, 2012  |  syntax: None  |  size: 1.62 KB  |  hits: 4  |  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. # Maintainer: josephgbr <rafael.f.f1@gmail.com>
  2. # Contributor: Ionut Biru <ibiru@archlinux.org>
  3. # Contributor: jtts
  4.  
  5. _pkgbase=gcr
  6. pkgname=lib32-${_pkgbase}
  7. pkgver=3.6.2
  8. pkgrel=2
  9. pkgdesc="A library for bits of crypto UI and parsing (32-bit)"
  10. arch=(x86_64)
  11. url="http://www.gnome.org"
  12. license=('GPL2')
  13. depends=('lib32-dconf' 'desktop-file-utils' 'lib32-gtk3' 'lib32-libgcrypt' 'lib32-p11-kit' ${_pkgbase}'>='${pkgver}-${pkgrel}) # 'desktop-file-utils' 'hicolor-icon-theme'
  14. makedepends=('intltool' 'gcc-multilib') # 'gobject-introspection'
  15. options=(!libtool)
  16. #install=gcr.install
  17. source=(http://download.gnome.org/sources/$_pkgbase/${pkgver%.*}/$_pkgbase-$pkgver.tar.xz)
  18. #        10-gcr.conf)
  19. sha256sums=('f709db2435e3635b68d8aa212863e0a8e81b1cc33442852a5183762876c7be9b')
  20. #            '5f2eda7175ae9f23ee0e09d2beceb24fd2f6daafd7bddfcc1c1f5a3734eb60fc')
  21.  
  22. build() {
  23.   export CC='gcc -m32'
  24.   export CXX='g++ -m32'
  25.   export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
  26.  
  27.   cd "$_pkgbase-$pkgver"
  28.   ./configure --prefix=/usr \
  29.     --libdir=/usr/lib32 \
  30.     --libexec=/usr/lib32/gcr \
  31.     --disable-static \
  32.     --disable-update-mime \
  33.     --disable-schemas-compile \
  34.     --enable-introspection=no
  35.   make
  36. }
  37.  
  38. package() {
  39.   cd "$_pkgbase-$pkgver"
  40.   make DESTDIR="$pkgdir" install
  41.  
  42.   # gcr wants to lock some memory to prevent swapping out private keys
  43.   # https://bugs.archlinux.org/task/32616
  44.   # https://bugzilla.gnome.org/show_bug.cgi?id=688161
  45.   #install -Dm644 ../10-gcr.conf "$pkgdir/etc/security/limits.d/10-gcr.conf"
  46.  
  47.   # cleanup for lib32 package
  48.   rm -rf "$pkgdir"/usr/{bin,include,share}
  49. }
  50.  
  51. # vim:set ts=2 sw=2 et: