summaryrefslogtreecommitdiff
path: root/pcr/eudev-systemdcompat/PKGBUILD
blob: 92a02a6cb9b16425e6b968e6eb3fe24efc533195 (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
57
58
59
60
# Maintainer (Manjaro): artoo <artoo@manjaro.org>
# Contributor (Manjaro): Philip Müller <philm|manjaro|org>
# Contributor (Manjaro): Dave Reisner <dreisner@archlinux.org>
# Contributor (Manjaro): Tom Gundersen <teg@jklm.no>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>

_spkgrel=1
_repo=https://repo.parabola.nu

pkgbase=eudev-systemdcompat
pkgname=('eudev-systemd' 'libeudev-systemd')
pkgver=235.8
pkgrel=1.parabola2
arch=('i686' 'x86_64' 'armv7h')
license=('GPL2')
groups=('base-openrc' 'openrc-base')
url="http://www.freedesktop.org/wiki/Software/systemd"
source_i686=("$_repo/libre/os/i686/libsystemd-standalone-$pkgver-${_spkgrel}.parabola1-i686.pkg.tar.xz"
             "$_repo/libre/os/i686/systemd-$pkgver-${_spkgrel}.parabola1-i686.pkg.tar.xz")
source_x86_64=("$_repo/libre/os/x86_64/libsystemd-standalone-$pkgver-${_spkgrel}.parabola1-x86_64.pkg.tar.xz"
               "$_repo/libre/os/x86_64/systemd-$pkgver-${_spkgrel}.parabola1-x86_64.pkg.tar.xz")
source_armv7h=("$_repo/libre/os/armv7h/libsystemd-standalone-$pkgver-${_spkgrel}.parabola1-armv7h.pkg.tar.xz"
               "$_repo/libre/os/armv7h/systemd-$pkgver-${_spkgrel}.parabola1-armv7h.pkg.tar.xz")
sha256sums_i686=('7059c920352fcc8ece69d02cee69ec289f530f95c936aa484a5d5d44da032849'
                 'ef668e45363885a1ebc6956857c0928ae96f778bcc0e7454d445d654f7197001')
sha256sums_x86_64=('8476fb2bceae6c7e9da3eb0491877cffb3ee113110b75098f9d94eaa1142118b'
                   '09df00fbd82a0322e280929da6a6db3dd4485a0cfb2a21f5e4e2c38a1fc7a247')
sha256sums_armv7h=('4a4e9eed7c557dbf6d142c97c4998ce87295f58a5fa4d3a230fadfa2d78c1714'
                   '66b571699bec92bbaebf97e535c35846b3a88e2911993970458007abcc510f1a')

package_eudev-systemd() {
    pkgdesc="systemd-sysuser and systemd-tmpfiles binary; systemd compatibility package"
    provides=("systemd=${pkgver}" "systemd-tools=${pkgver}")
    depends=('chroot-nspawn' 'eudev' 'libseccomp')
    conflicts=('systemd-tools' 'systemd' 'eudev-systemdcompat')
    replaces=('eudev-systemdcompat')

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

    # systemd-nspawn
    install -d $pkgdir/usr/bin
    echo -e "#!/bin/sh\nchroot-nspawn \"\$@\"" > $pkgdir/usr/bin/systemd-nspawn
    chmod +x $pkgdir/usr/bin/systemd-nspawn
}

package_libeudev-systemd() {
    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=('eudev-systemdcompat')

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