SHARE
TWEET

Untitled

a guest Oct 13th, 2019 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. _basename=libseccomp
  2. pkgname=lib32-libseccomp
  3. pkgver=2.4.1
  4. pkgrel=2
  5. pkgdesc='Enhanced seccomp library'
  6. arch=('x86_64')
  7. license=('LGPL2.1')
  8. url="https://github.com/seccomp/libseccomp"
  9. depends=('lib32-glibc')
  10. checkdepends=('valgrind')
  11. provides=('libseccomp.so')
  12. source=(https://github.com/seccomp/${_basename}/releases/download/v${pkgver}/${_basename}-${pkgver}.tar.gz{,.asc})
  13. sha256sums=('1ca3735249af66a1b2f762fe6e710fcc294ad7185f1cc961e5bd83f9988006e8'
  14.             'SKIP')
  15.  
  16. build() {
  17.   cd ${_basename}-${pkgver}
  18.  
  19.   export CC='gcc -m32'
  20.   export CXX='g++ -m32'
  21.   export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
  22.   export LDFLAGS+=' -m32'
  23.  
  24.   ./configure \
  25.       --prefix=/usr \
  26.       --libdir=/usr/lib32 \
  27.       --build=i686-pc-linux-gnu \
  28.  
  29.   make
  30. }
  31.  
  32. check() {
  33.   cd ${_basename}-${pkgver}
  34.   make check
  35. }
  36.  
  37. package() {
  38.   cd ${_basename}-${pkgver}
  39.   make DESTDIR="${pkgdir}" install
  40.   install -Dm 644 CHANGELOG README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
  41.  
  42.   rm -rf "${pkgdir}"/usr/share/man
  43.   rm -rf "${pkgdir}"/usr/include
  44.  
  45.   cd "${pkgdir}"/usr/bin
  46.   mv scmp_sys_resolver scmp_sys_resolver-32
  47.  
  48. }
  49.  
  50. # vim: ts=2 sw=2 et:
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top