From 2944b60cd3604b854663ded6e42ae8ef4f9b32e2 Mon Sep 17 00:00:00 2001 From: fbt Date: Fri, 19 Jun 2015 16:31:46 +0300 Subject: [PATCH] install headers --- PKGBUILD | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 59b8ff6..68c3262 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,5 +1,5 @@ # Maintainer: Jack L. Frost -# vim: ft=sh syn=sh et +# vim: ft=sh syn=sh ts=2 et pkgdesc="Standalone systemd libs (including -compat)" pkgname=( 'libsystemd-standalone' 'libsystemd-login' 'libsystemd-journal' 'libsystemd-id128' 'libsystemd-daemon' 'libsystemd-udev' ) @@ -30,6 +30,8 @@ package_libsystemd-standalone() { install -Dm644 .libs/libsystemd.so.0.6.0 "${pkgdir}/usr/lib/libsystemd.so.0.6.0" ln -s libsystemd.so.0.6.0 "${pkgdir}/usr/lib/libsystemd.so" + 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/libsystemd/libsystemd.pc "${pkgdir}/usr/lib/pkgconfig/libsystemd.pc" } @@ -41,6 +43,7 @@ package_libsystemd-login() { install -Dm644 .libs/libsystemd-login.so.0.9.3 "${pkgdir}/usr/lib/libsystemd-login.so.0.9.3" ln -s libsystemd-login.so.0.9.3 "${pkgdir}/usr/lib/libsystemd-login.so" + install -Dm644 src/systemd/sd-login.h "${pkgdir}/usr/include/systemd/sd-login.h" install -Dm644 src/compat-libs/libsystemd-login.pc "${pkgdir}/usr/lib/pkgconfig/libsystemd-login.pc" } @@ -52,6 +55,7 @@ package_libsystemd-journal() { install -Dm644 .libs/libsystemd-journal.so.0.11.5 "${pkgdir}/usr/lib/libsystemd-journal.so.0.11.5" ln -s libsystemd-journal.so.0.11.5 "${pkgdir}/usr/lib/libsystemd-journal.so" + install -Dm644 src/systemd/sd-journal.h "${pkgdir}/usr/include/systemd/sd-journal.h" install -Dm644 src/compat-libs/libsystemd-journal.pc "${pkgdir}/usr/lib/pkgconfig/libsystemd-journal.pc" } @@ -63,6 +67,7 @@ package_libsystemd-id128() { install -Dm644 .libs/libsystemd-id128.so.0.0.28 "${pkgdir}/usr/lib/libsystemd-id128.so.0.0.28" ln -s libsystemd-id128.so.0.0.28 "${pkgdir}/usr/lib/libsystemd-id128.so" + install -Dm644 src/systemd/sd-id128.h "${pkgdir}/usr/include/systemd/sd-id128.h" install -Dm644 src/compat-libs/libsystemd-id128.pc "${pkgdir}/usr/lib/pkgconfig/libsystemd-id128.pc" } @@ -74,6 +79,7 @@ package_libsystemd-daemon() { install -Dm644 .libs/libsystemd-daemon.so.0.0.12 "${pkgdir}/usr/lib/libsystemd-daemon.so.0.0.12" ln -s libsystemd-daemon.so.0.0.12 "${pkgdir}/usr/lib/libsystemd-daemon.so" + install -Dm644 src/systemd/sd-daemon.h "${pkgdir}/usr/include/systemd/sd-daemon.h" install -Dm644 src/compat-libs/libsystemd-daemon.pc "${pkgdir}/usr/lib/pkgconfig/libsystemd-daemon.pc" } @@ -83,17 +89,18 @@ package_libsystemd-udev() { cd "$srcdir/systemd-${pkgver}" install -Dm644 .libs/libudev.so.1.6.2 "${pkgdir}/usr/lib/libudev.so.1.6.2" - install -Dm644 .libs/libgudev-1.0.so.0.2.0 "${pkgdir}/usr/lib/libgudev-1.0.so.0.2.0" ln -s libgudev-1.0.so.0.2.0 "${pkgdir}/usr/lib/libgudev-1.0.so" ln -s libudev.so.1.6.2 "${pkgdir}/usr/lib/libudev.so" - # Install the pkg-config files - install -Dm644 src/gudev/gudev-1.0.pc "${pkgdir}/usr/lib/pkgconfig/gudev-1.0.pc" install -Dm644 src/libudev/libudev.pc "${pkgdir}/usr/lib/pkgconfig/libudev.pc" - - # Install udev headers. - install -Dm644 src/libudev/libudev-private.h "${pkgdir}/usr/include/libudev-private.h" install -Dm644 src/libudev/libudev.h "${pkgdir}/usr/include/libudev.h" + + # gudev + install -Dm644 .libs/libgudev-1.0.so.0.2.0 "${pkgdir}/usr/lib/libgudev-1.0.so.0.2.0" + install -Dm644 src/gudev/gudev-1.0.pc "${pkgdir}/usr/lib/pkgconfig/gudev-1.0.pc" + for i in src/gudev/*.h; do + install -Dm644 "$i" "${pkgdir}/usr/include/gudev-1.0/gudev/$i" + done } sha1sums=('307d1c3e48b3bca1039cb66df2d7def074efe2ef')