summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: edff07b7c252293bc386329e95acf9d9c4bbb53f (plain)
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
34
35
36
37
38
# $Id: PKGBUILD 98856 2013-10-20 15:20:08Z thomas $
# Maintainer: Thomas B├Ąchler <thomas@archlinux.org>
# x32 Maintainer: Fantix King <fantix.king at gmail.com> 

pkgname=libx32-acl
pkgver=2.2.52
pkgrel=2.1
pkgdesc="Access control list libraries (x32 ABI)"
arch=('x86_64')
url="http://savannah.nongnu.org/projects/acl"
license=('LGPL')
depends=('libx32-attr>=2.4.46' 'acl')
makedepends=('gcc-multilib-x32')
source=(http://download.savannah.gnu.org/releases/acl/acl-${pkgver}.src.tar.gz)
sha256sums=('179074bb0580c06c4b4137be4c5a92a701583277967acdb5546043c7874e0d23')

build() {
  cd "${srcdir}/acl-${pkgver}"

  export CC="gcc -mx32"
  export PKG_CONFIG_PATH="/usr/libx32/pkgconfig"

  export INSTALL_USER=root INSTALL_GROUP=root 
  ./configure --prefix=/usr --libdir=/usr/libx32 --libexecdir=/usr/libx32
  make 
}

package() {
  cd "${srcdir}/acl-${pkgver}"

  make DIST_ROOT="${pkgdir}" install install-lib install-dev

  # tidy up
  rm -f ${pkgdir}/libx32/libacl.a
  chmod 0755 "$pkgdir"/usr/libx32/libacl.so.*.*.*

  rm -rf ${pkgdir}/usr/{bin,include,share}
}