summaryrefslogtreecommitdiff
path: root/pcr/systemdcompat/PKGBUILD
blob: 8efd7529061f3b02b5e627f70a66c64cec9eba2a (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Maintainer (Artix): artoo <artoo@manjaro.org>
# Contributor (Artix): Philip Müller <philm|manjaro|org>
# Contributor (Arch): Dave Reisner <dreisner@archlinux.org>
# Contributor (Arch): Tom Gundersen <teg@jklm.no>
# Maintainer: David P. <megver83@parabola.nu>

_spkgrel=1.parabola1
_repo=https://repo.parabola.nu/libre/os

pkgbase=systemdcompat
pkgname=('systemd-dummy' 'libsystemd-dummy')
pkgver=238.76
pkgrel=1
pkgrel+=.parabola3
arch=('x86_64' 'i686' 'armv7h')
license=('GPL2')
groups=('base-openrc' 'openrc-base')
url="http://www.freedesktop.org/wiki/Software/systemd"
source_x86_64=("$_repo/x86_64/libsystemd-standalone-$pkgver-${_spkgrel}-x86_64.pkg.tar.xz"
               "$_repo/x86_64/systemd-$pkgver-${_spkgrel}-x86_64.pkg.tar.xz")
source_i686=("$_repo/i686/libsystemd-standalone-$pkgver-${_spkgrel}-i686.pkg.tar.xz"
               "$_repo/i686/systemd-$pkgver-${_spkgrel}-i686.pkg.tar.xz")
source_armv7h=("$_repo/armv7h/libsystemd-standalone-$pkgver-${_spkgrel}-armv7h.pkg.tar.xz"
               "$_repo/armv7h/systemd-$pkgver-${_spkgrel}-armv7h.pkg.tar.xz")
sha256sums_x86_64=('3edd5db99841b33f8bd642fd4d0485c2b193632ba4422202b3f2a804a622ed41'
                   '846192d62ecc76973c8bf1e0d636de229dcc217d2b3c91de1d3ecfae3458b78e')
sha256sums_i686=('8f55127e661875ba0347901c5ffac1deb3b1b8454e8c4d0a4961000b03981ab4'
                 'c0f3e01a4bf477c2d01b6239ee3c0d4b51e30d7459b5491693fb5c18755be5d6')
sha256sums_armv7h=('b0a606b4664047ca1d49462a590fedb4a5d13034ca733860f3f4bbe420f13435'
                   'd80fdecdf8af82a83356c3ed6f6294b455f8685efdcf01c614f8e01fe772eb75')

package_systemd-dummy() {
    pkgdesc="systemd shared libraries; systemd compatibility package"
    provides=("systemd=${pkgver}" "systemd-tools=${pkgver}")
    depends=('eudev' 'libseccomp')
    conflicts=('systemd-tools' 'systemd' 'eudev-systemdcompat')
    replaces=('eudev-systemd')

    install -d "$pkgdir"/usr/lib/systemd
    for f in usr/lib/systemd/libsystemd-shared*.so*;do
        mv -v $f $pkgdir/usr/lib/systemd
    done
}

package_libsystemd-dummy() {
    pkgdesc="systemd client libraries without udev; systemd compatibility package"
    provides=("libsystemd=${pkgver}" 'libsystemd.so')
    depends=('glibc' 'libcap' 'libgcrypt' 'lz4' 'xz' 'libeudev')
    conflicts=('libsystemd' 'libsystemd-standalone' 'eudev-systemdcompat')
    replaces=('libeudev-systemd')

    install -d $pkgdir/usr/lib
    for f in usr/lib/libsystemd*.so*;do
        mv -v $f $pkgdir/usr/lib
    done
}