summaryrefslogtreecommitdiff
path: root/pcr/eudev-systemdcompat/PKGBUILD
blob: 6e7bee3fee1348d4a158ac0fcfb72cd6cda96145 (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
68
# 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

pkgname=eudev-systemdcompat
pkgver=226
pkgrel=1
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>=3.1.2' 'lz4')
optdepends=('upower-pm-utils: pm-utils support')
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=('ee98131ccaea76f1087bef8528ad76eb299b92fbf6d84fb3718e83303f923fce'
                '62e0040e65c9ab0b67a6eb9dd950a151ac8ce8fcefafa0131862b142ebdc2288')
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=('5d2f6b19c5c566143a9bf4d1c72b150fff853291544435e4a649cfcf282711aa'
                '08d3162cff98fe441c4e17d099b02be5e8431b8c239c89d8b1d588243f209345')
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=('6b03c089a1cfdd465944481b21cbd76c472e8b75de31b41fb2efd95daded5912'
                'f4c3a99c73b16a2c181f59fdd793823fc74c7e1c7ea997ebe4715f242cbca18e')
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"
}