summaryrefslogtreecommitdiff
path: root/pcr/eudev-systemdcompat/PKGBUILD
blob: 257218d1fd89395706a71bff998f39492f0e3c42 (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
# 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=229
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')
depends=('glib2' 'glibc' 'libgcrypt' 'xz' 'eudev' 'lz4')
conflicts=('systemd'
            'systemd-tools'
            'libsystemd'
            'openrc-systemdcompat')
replaces=('openrc-systemdcompat')

source_i686=("$_repo/core/os/i686/libsystemd-$pkgver-${_spkgrel}-i686.pkg.tar.xz"
             "$_repo/libre/os/i686/systemd-$pkgver-${_spkgrel}.parabola1-i686.pkg.tar.xz")
sha256sums_i686=('3d8916501b23a37cabc75b238d0314f20627f8da6a685420e8a8c619d82a7a10'
                 '0f1da7e9a80f04d6e10f16c3dc1d8da500929617ebef45cc7a7129d94c4a6e31')

source_x86_64=("$_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_x86_64=('27c5c5c9cef7ba9826b3e9f57a649c3ff2d432a75cfbf8f4ce60a68a8e71bf54'
                   'c9cc8f261a6ac6668fd08540558cbd28d7243a7bfbe4c8d001119b453b7539fd')

source_armv7h=("$_repo/core/os/armv7h/libsystemd-$pkgver-${_spkgrel}-armv7h.pkg.tar.xz"
               "$_repo/libre/os/armv7h/systemd-$pkgver-${_spkgrel}.parabola1-armv7h.pkg.tar.xz")
sha256sums_armv7h=('e79371fe5cc921589dc89268852798002a06e5d54200871349c71995cee43d18'
                   '134c9f1373dda5c1085e30cc5a7eca5a965d3af3270c198abde594ad77da02c1')

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"
}