OSDN Git Service

upg
[joborun/jobcore.git] / mkinitcpio / PKGBUILD-oba
1 # Obarun        : 66 init/supervisor
2 # Maintainer    : Eric Vidal <eric@obarun.org>
3 # Maintainer    : Jean-Michel T.Dydak <jean-michel@obarun.org>
4 # Obarun PkgSrc : https://git.obarun.org/pkg/obcore/mkinitcpio
5 #----------------
6 #--------------------------------------------------------------
7 # DESCRIPTION ]
8
9 pkgname=mkinitcpio
10 pkgver=30
11 pkgrel=4
12
13 pkgdesc='Modular initramfs image creation utility'
14
15 url='https://github.com/archlinux/mkinitcpio'
16
17 source=(
18     "https://sources.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz"
19     '001-remove-systemd-and-kept-gzip-as-default.patch'
20     'add_udev_rule_function.patch'
21 )
22
23 #----------------------
24 # BUILD CONFIGURATION ]
25
26 makedepends=(
27     'asciidoc'
28     'git'
29     'sed'
30 )
31
32 #------------------------
33 # INSTALL CONFIGURATION ]
34
35 arch=(x86_64)
36
37 install=mkinitcpio.install
38
39 depends=(
40     'mkinitcpio-busybox>=1.19.4-2'
41     'kmod'
42     'util-linux>=2.23'
43     'libarchive'
44     'coreutils'
45     'awk'
46     'bash'
47     'findutils'
48     'grep'
49     'filesystem>=2011.10-1'
50     'gzip'
51     'lz4'
52     'sed'
53 )
54
55 optdepends=(
56     'xz: Use lzma or xz compression for the initramfs image'
57     'bzip2: Use bzip2 compression for the initramfs image'
58     'lzop: Use lzo compression for the initramfs image'
59     'lz4: Use lz4 compression for the initramfs image'
60     'zstd: Use zstd compression for the initramfs image'
61     'mkinitcpio-nfs-utils: Support for root filesystem on NFS'
62 )
63
64 backup=(
65     'etc/mkinitcpio.conf'
66 )
67
68 provides=(
69     "mkinitcpio=$pkgver-$pkgrel"
70     'initramfs'
71 )
72
73 #----------------
74 # BUILD PREPARE ]
75
76 prepare() {
77     cd $pkgname-$pkgver
78
79     ## Apply 0003-remove-systemd.patch
80     patch -Np1 < $srcdir/001-remove-systemd-and-kept-gzip-as-default.patch
81     patch -Np1 < $srcdir/add_udev_rule_function.patch
82
83 }
84
85 #--------
86 # CHECK ]
87
88 check() {
89     make -C $pkgname-$pkgver check
90 }
91
92 #----------
93 # PACKAGE ]
94
95 package() {
96     make -C $pkgname-$pkgver DESTDIR="$pkgdir" install
97 }
98
99 #-------------------------
100 # LICENCE AND VALIDATION ]
101
102 license=(GPL)
103
104 sha512sums=(' ')