summaryrefslogtreecommitdiff
path: root/pcr/eudev-systemdcompat/PKGBUILD
blob: 42c8c7350828251d778a2c5744b948b52e732a31 (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
61
62
63
64
65
66
67
# 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=3
_repo=https://repo.parabola.nu

pkgname=eudev-systemdcompat
pkgver=228
pkgrel=1.parabola1
pkgdesc="systemd client libraries without udev; systemd compatibility package"
arch=('i686' 'x86_64' 'armv7h')
license=('GPL2')
#groups=('eudev-base')
url="http://www.freedesktop.org/wiki/Software/systemd"
provides=("libsystemd=${pkgver}"
            "systemd=${pkgver}"
            "systemd-tools=${pkgver}"
            'libsystemd.so'
            'libsystemd-daemon.so'
            'libsystemd-id128.so'
            'libsystemd-journal.so'
            'libsystemd-login.so')
depends=('glib2' 'glibc' 'libgcrypt' 'xz' 'eudev' 'lz4')
conflicts=('systemd'
            'systemd-tools'
            'libsystemd'
            'openrc-systemdcompat')
replaces=('openrc-systemdcompat')

if [ "$CARCH" = "i686" ]; then
    source=("$_repo/core/os/i686/libsystemd-$pkgver-${_spkgrel}-i686.pkg.tar.xz"
            "$_repo/libre/os/i686/systemd-$pkgver-${_spkgrel}.parabola1-i686.pkg.tar.xz")
sha256sums=('6309a05c8eb250908918648d76c1c8635f5328d0e400ad8380499b9f203df313'
            '0baaaeb82c322374059a0abe78e92f6daeda6c6241ddbc2925ddd69f057766d1')
elif [ "$CARCH" = "x86_64" ]; then
    source=("$_repo/core/os/x86_64/libsystemd-$pkgver-${_spkgrel}-x86_64.pkg.tar.xz"
            "$_repo/libre/os/x86_64/systemd-$pkgver-${_spkgrel}.parabola1-x86_64.pkg.tar.xz")
sha256sums=('71fe8955cbd5e32ab628af0f2a20dab0e93be5834934818120424dade0288b00'
            'f4ab7f4153455ab37b8768dcd9b36dd1d9052dd869e68501044167c586543635')
elif [ "$CARCH" = "armv7h" ]; then
    source=("$_repo/core/os/armv7h/libsystemd-$pkgver-${_spkgrel}-armv7h.pkg.tar.xz"
            "$_repo/libre/os/armv7h/systemd-$pkgver-${_spkgrel}.parabola1-armv7h.pkg.tar.xz")
sha256sums=('547a68950bccb8ae4a35656f014a930afe550322b01d9d7b1987407ed98b35af'
            'e3ba44042ae5d0c9f8e0954bb5dce80f4826d909003b841b69a0c8b37d1a4ed1')
fi

prepare() {
	#clean libsystemd
	rm usr/lib/libudev*.so*

	# clean systemd
	rm -r {etc,var,usr/{include,share}}
	rm usr/lib/libnss*
	for d in usr/lib/*;do
            [[ -d $d ]] && rm -r $d
	done
	for f in usr/bin/*;do
		[[ $f != 'usr/bin/systemd-tmpfiles' && $f != 'usr/bin/systemd-sysusers' ]] && rm $f
	done
}

package() {
	mv "$srcdir/usr/" "$pkgdir"
}