PKGBUILDs/core/keyutils/PKGBUILD

37 lines
1.1 KiB
Bash
Raw Normal View History

2013-05-31 13:41:12 +00:00
# $Id: PKGBUILD 186780 2013-05-31 07:19:13Z tpowa $
2012-04-19 12:33:04 +00:00
# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
2011-03-28 16:18:38 +00:00
2012-04-19 12:33:04 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2011-03-28 16:32:09 +00:00
# - must build -j1, everything must build in order
2011-03-28 16:18:38 +00:00
pkgname=keyutils
2017-03-18 19:41:25 +00:00
pkgver=1.5.10
2013-11-01 15:53:43 +00:00
pkgrel=1
2011-03-28 16:18:38 +00:00
pkgdesc="Linux Key Management Utilities"
2013-11-01 15:53:43 +00:00
arch=('i686' 'x86_64')
2011-03-28 16:18:38 +00:00
url="http://www.kernel.org"
license=('GPL2' 'LGPL2.1')
depends=('glibc' 'sh')
2013-11-01 15:53:43 +00:00
backup=('etc/request-key.conf')
2017-03-18 19:41:25 +00:00
source=(https://people.redhat.com/~dhowells/${pkgname}/${pkgname}-${pkgver}.tar.bz2
2013-11-01 16:24:54 +00:00
request-key.conf.patch)
2017-03-18 19:41:25 +00:00
sha256sums=('115c3deae7f181778fd0e0ffaa2dad1bf1fe2f5677cf2e0e348cdb7a1c93afb6'
'203c602c61ed94ccd423a0a453d74143d678c641a9a4486367576ee8af2cb8d6')
2013-05-31 13:41:12 +00:00
prepare() {
2013-11-01 15:53:43 +00:00
cd ${pkgname}-${pkgver}
2013-05-31 13:41:12 +00:00
# fix paths of binaries in /etc/request-key.conf
patch -Np0 -i ../request-key.conf.patch
}
2011-03-28 16:18:38 +00:00
build() {
2013-11-01 15:53:43 +00:00
cd ${pkgname}-${pkgver}
2013-05-31 13:41:12 +00:00
make -j1 CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" SBINDIR='/usr/bin' BINDIR='/usr/bin'
2011-03-28 16:18:38 +00:00
}
package() {
2013-11-01 15:53:43 +00:00
cd ${pkgname}-${pkgver}
2017-03-18 19:41:25 +00:00
make DESTDIR="${pkgdir}" SBINDIR='/usr/bin' BINDIR='/usr/bin' LIBDIR='/usr/lib' USRLIBDIR='/usr/lib' install
2011-03-28 16:18:38 +00:00
}