Created
January 10, 2019 20:02
-
-
Save brunnre8/4bb37277082dca2b5c826f55338474de to your computer and use it in GitHub Desktop.
mkosi-git: add manpage
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
From d9091cccc4adfb163818ea716fc6895f91393029 Mon Sep 17 00:00:00 2001 | |
From: Reto Brunner <brunnre8@gmail.com> | |
Date: Thu, 10 Jan 2019 19:48:07 +0100 | |
Subject: [PATCH] make manpage | |
diff --git a/.SRCINFO b/.SRCINFO | |
index 1c6b551..4d4c20f 100644 | |
--- a/.SRCINFO | |
+++ b/.SRCINFO | |
@@ -1,14 +1,13 @@ | |
-# Generated by mksrcinfo v8 | |
-# Sat Nov 3 18:57:50 UTC 2018 | |
pkgbase = mkosi-git | |
pkgdesc = Build Legacy-Free OS Images | |
- pkgver = 4.r85.g2fcdbfa | |
- pkgrel = 1 | |
+ pkgver = 4.r186.g6997dc7 | |
+ pkgrel = 2 | |
url = https://github.com/systemd/mkosi | |
arch = any | |
license = LGPL2.1 | |
makedepends = python-setuptools | |
makedepends = git | |
+ makedepends = pandoc | |
depends = python | |
optdepends = dnf: build Fedora or Mageia images | |
optdepends = debootstrap: build Debian or Ubuntu images | |
diff --git a/PKGBUILD b/PKGBUILD | |
index db1d79f..1f1c987 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -1,15 +1,16 @@ | |
# Maintainer: Lucas Werkmeister <mail@lucaswerkmeister.de> | |
# Contributor: Dave Reisner <dreisner@archlinux.org> | |
+# Contributor: Reto Brunner <brunnre8@gmail.com> | |
pkgname=mkosi-git | |
-pkgver=4.r85.g2fcdbfa | |
-pkgrel=1 | |
+pkgver=4.r186.g6997dc7 | |
+pkgrel=2 | |
pkgdesc='Build Legacy-Free OS Images' | |
arch=('any') | |
url='https://github.com/systemd/mkosi' | |
license=('LGPL2.1') | |
depends=('python') | |
-makedepends=('python-setuptools' 'git') | |
+makedepends=('python-setuptools' 'git' 'pandoc') | |
optdepends=('dnf: build Fedora or Mageia images' | |
'debootstrap: build Debian or Ubuntu images' | |
'debian-archive-keyring: build Debian images' | |
@@ -50,8 +51,14 @@ pkgver() { | |
' | |
} | |
+build() { | |
+ cd 'mkosi' | |
+ pandoc -s -f markdown -t man mkosi.md -o mkosi.1 | |
+ python setup.py build | |
+} | |
+ | |
package() { | |
cd 'mkosi' | |
- | |
- python setup.py install --root="$pkgdir" | |
+ python setup.py install --skip-build --optimize=1 --root="$pkgdir" | |
+ install -Dm 644 mkosi.1 "$pkgdir/usr/share/man/man1/mkosi.1" | |
} | |
-- | |
2.20.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment