arch-packages/PKGBUILD

57 lines
2.2 KiB
Text
Raw Normal View History

2017-03-27 21:15:49 +02:00
# Maintainer : Christian Rebischke <Chris.Rebischke@archlinux.org>
# Contributor:dront78 <dront78@gmail.com>
2015-06-10 11:05:28 +02:00
pkgname=systemtap
2018-02-14 12:31:23 +01:00
pkgver=3.2
2018-06-03 19:06:43 +02:00
pkgrel=4
2018-02-14 12:31:23 +01:00
pkgdesc="provides infrastructure to simplify the gathering of information about the running system."
2015-06-10 11:05:28 +02:00
url="http://sourceware.org/systemtap/"
2018-02-14 12:31:23 +01:00
arch=('x86_64' 'i686')
2015-06-10 11:05:28 +02:00
license=('GPL')
2018-06-16 09:59:08 +02:00
depends=('elfutils' 'nss' 'python')
2018-06-16 09:46:51 +02:00
makedepends=('python-setuptools' 'xmlto')
2018-02-14 12:31:23 +01:00
optdepends=('sqlite3: for storing results in a database')
source=("${pkgname}-${pkgver}.tar.gz::https://sourceware.org/systemtap/ftp/releases/${pkgname}-${pkgver}.tar.gz"
"${pkgname}-${pkgver}.tar.gz.asc::https://sourceware.org/systemtap/ftp/releases/${pkgname}-${pkgver}.tar.gz.asc"
2018-06-03 16:35:39 +02:00
'stp_remove_install_hooks.patch'
2018-06-03 19:06:43 +02:00
'fixes-for-gcc-8.patch'
'fix-timers-for-4.15-kernel.patch'
)
2018-02-14 12:31:23 +01:00
sha512sums=('6036ed1b5189fd3fcfdeeaa526a3539ac632d0b687a063b5e3424e8f613bfc2c8d079742b0262b547128e97e30e4beb61898b23761657aee519e61346ac92e94'
'SKIP'
2018-06-03 16:35:39 +02:00
'1d2758e9f875e06d08d37679587454fb43e025aa83ceeb405b1bc8d3277476502f2d67cf9e8383cc4c63ae545d7d0e9ebaab814f880b2f53bba47bef4afcd537'
2018-06-03 19:06:43 +02:00
'970d83ace43909e5a1bfc4112d78dd913af6d59e4b8dc8c4461370b022092b0cdb6830427b52bcf5b7409ff6d7c79dab778e53398ba65de71bd4a270c66a2d3a'
'3cbf261cf34df23454e0a9aa4566664241b8bcf4b44a28617cce483d0f24632b9fcd4ac8b37f488e736d0ce02308fb67e7b4dd52f6349a9010e2390d8c94190d'
)
2017-03-27 21:15:49 +02:00
install='systemtap.install'
2018-02-14 12:31:23 +01:00
validpgpkeys=('5D38116FA4D3A7CC77E378D37E83610126DCC2E8')
2015-06-10 11:05:28 +02:00
2018-02-14 12:31:23 +01:00
prepare() {
cd "${pkgname}-${pkgver}"
patch -Np1 -i "${srcdir}/stp_remove_install_hooks.patch"
2018-06-03 16:35:39 +02:00
patch -Np1 -i "${srcdir}/fixes-for-gcc-8.patch"
2018-06-03 19:06:43 +02:00
patch -Np1 -i "${srcdir}/fix-timers-for-4.15-kernel.patch"
autoreconf -i
2018-02-14 12:31:23 +01:00
}
2015-06-10 11:05:28 +02:00
build() {
2017-04-07 01:56:20 +02:00
cd "${pkgname}-${pkgver}"
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib/"${pkgname}" \
--libdir=/usr/lib/"${pkgname}" \
--mandir=/usr/share/man/ \
2018-02-14 12:31:23 +01:00
--localstatedir=/var \
2017-04-07 01:56:20 +02:00
--enable-pie \
2018-02-14 12:31:23 +01:00
--disable-docs \
--enable-htmldocs
2015-06-10 11:05:28 +02:00
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
2018-02-14 12:31:23 +01:00
rmdir "${pkgdir}/var/run/stap-server/"
rmdir "${pkgdir}/var/run/"
2015-06-10 11:05:28 +02:00
}