-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mkinitcpio-git: imported package from AUR
For the unified UEFI image feature archlinux/mkinitcpio#53
- Loading branch information
Chih-Hsuan Yen
committed
Jul 18, 2021
1 parent
e6076f8
commit de19361
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Maintainer: Christian Hesse <mail@eworm.de> | ||
# Maintainer: Dave Reisner <dreisner@archlinux.org> ([core] package) | ||
# Maintainer: Thomas Bächler <thomas@archlinux.org> ([core] package) | ||
|
||
pkgname=mkinitcpio-git | ||
pkgver=30.r18.gf40bb42 | ||
pkgrel=1 | ||
pkgdesc='Modular initramfs image creation utility - git checkout' | ||
arch=('any') | ||
url='https://github.com/archlinux/mkinitcpio' | ||
license=('GPL') | ||
depends=('awk' 'mkinitcpio-busybox' 'kmod' 'util-linux' 'libarchive' 'coreutils' | ||
'bash' 'findutils' 'grep' 'filesystem' 'gzip' 'systemd-tools') | ||
optdepends=('xz: Use lzma or xz compression for the initramfs image' | ||
'bzip2: Use bzip2 compression for the initramfs image' | ||
'lzop: Use lzo compression for the initramfs image' | ||
'mkinitcpio-nfs-utils: Support for root filesystem on NFS') | ||
makedepends=('git' 'asciidoc') | ||
provides=('initramfs' "mkinitcpio=${pkgver}") | ||
conflicts=('mkinitcpio') | ||
backup=('etc/mkinitcpio.conf') | ||
source=('git+https://github.com/archlinux/mkinitcpio.git') | ||
sha256sums=('SKIP') | ||
|
||
pkgver() { | ||
cd mkinitcpio/ | ||
|
||
if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then | ||
printf '%s.r%s.g%s' \ | ||
"$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG})" \ | ||
"$(git rev-list --count ${GITTAG}..)" \ | ||
"$(git rev-parse --short HEAD)" | ||
else | ||
printf '0.r%s.g%s' \ | ||
"$(git rev-list --count master)" \ | ||
"$(git rev-parse --short HEAD)" | ||
fi | ||
} | ||
|
||
package() { | ||
cd mkinitcpio/ | ||
|
||
make DESTDIR="${pkgdir}" install | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
maintainers: | ||
- github: yan12125 | ||
|
||
build_prefix: extra-x86_64 | ||
|
||
pre_build_script: | | ||
aur_pre_build(maintainers='eworm') | ||
post_build: aur_post_build | ||
|
||
update_on: | ||
- source: github | ||
github: archlinux/mkinitcpio | ||
- source: aur | ||
aur: mkinitcpio-git |