This repository has been archived on 2024-10-14. You can view files and clone it, but cannot push or open issues or pull requests.
libsystemd-standalone/PKGBUILD

69 lines
2.6 KiB
Bash
Raw Normal View History

2015-06-08 09:31:01 +00:00
# Maintainer: Jack L. Frost <fbt@fleshless.org>
2015-06-19 13:54:11 +00:00
# % Trigger: 1434722047 %
# vim: ft=sh
2015-06-08 09:31:01 +00:00
pkgdesc="Standalone systemd libs"
pkgname=( 'libsystemd-standalone' 'libsystemd-udev' )
2016-08-03 10:37:02 +00:00
pkgver=231
pkgrel=1
2015-06-08 09:31:01 +00:00
arch=('i686' 'x86_64')
url="http://www.freedesktop.org/wiki/Software/systemd"
license=('GPL2' 'LGPL2.1' 'MIT')
makedepends=('acl' 'cryptsetup' 'docbook-xsl' 'gobject-introspection' 'gperf'
'gtk-doc' 'intltool' 'kmod' 'libcap' 'libgcrypt' 'libmicrohttpd' 'libxslt'
'linux-api-headers' 'pam' 'python' 'python-lxml' 'quota-tools' 'xz')
options=('strip')
2015-07-31 09:15:45 +00:00
source=( "https://github.com/systemd/systemd/archive/v${pkgver}.tar.gz" )
2015-06-08 09:31:01 +00:00
build() {
cd "systemd-$pkgver"
2015-07-31 09:25:02 +00:00
./autogen.sh
./configure
2015-06-08 09:31:01 +00:00
make
}
package_libsystemd-standalone() {
install='libsystemd.install'
provides=( 'libsystemd.so' 'libsystemd' )
make -C "systemd-$pkgver" DESTDIR="$pkgdir" install-libLTLIBRARIES
# Headers
cd "systemd-$pkgver"
install -Dm644 src/systemd/_sd-common.h "${pkgdir}/usr/include/systemd/_sd-common.h"
install -Dm644 src/systemd/sd-messages.h "${pkgdir}/usr/include/systemd/sd-messages.h"
install -Dm644 src/systemd/sd-event.h "${pkgdir}/usr/include/systemd/sd-event.h"
install -Dm644 src/systemd/sd-bus.h "${pkgdir}/usr/include/systemd/sd-bus.h"
install -Dm644 src/systemd/sd-bus-protocol.h "${pkgdir}/usr/include/systemd/sd-bus-protocol.h"
install -Dm644 src/systemd/sd-bus-vtable.h "${pkgdir}/usr/include/systemd/sd-bus-vtable.h"
install -Dm644 src/systemd/sd-daemon.h "${pkgdir}/usr/include/systemd/sd-daemon.h"
install -Dm644 src/systemd/sd-id128.h "${pkgdir}/usr/include/systemd/sd-id128.h"
install -Dm644 src/systemd/sd-journal.h "${pkgdir}/usr/include/systemd/sd-journal.h"
install -Dm644 src/systemd/sd-login.h "${pkgdir}/usr/include/systemd/sd-login.h"
# pkg-config
install -Dm644 src/libsystemd/libsystemd.pc "${pkgdir}/usr/lib/pkgconfig/libsystemd.pc"
# remove libudev stuff
cd "$pkgdir/usr/lib"
rm libudev.so* libudev.la
2015-06-08 09:31:01 +00:00
}
package_libsystemd-udev() {
2016-08-03 12:06:59 +00:00
_libudev_version='1.6.5'
install='libsystemd.install'
provides=( 'libudev.so' 'libudev' )
2015-06-08 09:31:01 +00:00
install -Dm644 "systemd-$pkgver/.libs/libudev.la" "${pkgdir}/usr/lib/libudev.la"
install -Dm644 "systemd-$pkgver/.libs/libudev.so.$_libudev_version" "${pkgdir}/usr/lib/libudev.so.$_libudev_version"
ln -s "libudev.so.$_libudev_version" "$pkgdir/usr/lib/libudev.so.1"
ln -s "libudev.so.$_libudev_version" "$pkgdir/usr/lib/libudev.so"
2015-06-08 09:31:01 +00:00
install -Dm644 "systemd-$pkgver/src/libudev/libudev.pc" "$pkgdir/usr/lib/pkgconfig/libudev.pc"
install -Dm644 "systemd-$pkgver/src/libudev/libudev.h" "$pkgdir/usr/include/libudev.h"
2015-06-08 09:31:01 +00:00
}
2016-08-03 10:37:02 +00:00
sha1sums=('47768103290d2023c3452bc36bc77f7b1fd798ea')