Skip to content

Commit

Permalink
mkinitcpio-git: imported package from AUR
Browse files Browse the repository at this point in the history
For the unified UEFI image feature

archlinux/mkinitcpio#53
  • Loading branch information
Chih-Hsuan Yen committed Jul 18, 2021
1 parent e6076f8 commit de19361
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
45 changes: 45 additions & 0 deletions archlinuxcn/mkinitcpio-git/PKGBUILD
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
}

15 changes: 15 additions & 0 deletions archlinuxcn/mkinitcpio-git/lilac.yaml
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

0 comments on commit de19361

Please sign in to comment.