Skip to content

Commit

Permalink
Bump version to 0.1.2
Browse files Browse the repository at this point in the history
Fixes #27
  • Loading branch information
johnramsden committed Aug 3, 2020
1 parent 35f078f commit 469a5e6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.10)

project(zectl LANGUAGES C VERSION 0.1.1 DESCRIPTION "BE Manager")
project(zectl LANGUAGES C VERSION 0.1.2 DESCRIPTION "BE Manager")

set (CMAKE_C_STANDARD 11)

Expand Down
16 changes: 9 additions & 7 deletions packaging/arch/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Maintainer: John Ramsden <johnramsden [at] riseup [dot] net>

pkgname=zectl
pkgver=0.1.1
pkgver=0.1.2
pkgrel=1
pkgdesc="ZFS Boot Environment manager."
url="http://github.com/johnramsden/${pkgname}"
Expand All @@ -10,21 +10,23 @@ license=('MIT')
depends=('zfs')
makedepends=('make' 'cmake')
conflicts=("${pkgname}-git")
provides=("zectl")

source=(${pkgname}-${pkgver}.tar.gz)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/johnramsden/${pkgname}/archive/v${pkgver}.tar.gz")
source=(
"${pkgname}-${pkgver}.tar.gz::https://github.com/johnramsden/${pkgname}/archive/v${pkgver}.tar.gz"
)

sha256sums=(SKIP) # Replace on update

build() {
cd "${srcdir}/${pkgname}-${pkgver}"
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DPLUGINS_DIRECTORY=/usr/share/zectl/libze_plugin
make
CFLAGS+=" -fmacro-prefix-map=$PWD/=" cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DPLUGINS_DIRECTORY=/usr/share/zectl/libze_plugin .
make VERBOSE=1
}

package() {
cd "${srcdir}/${pkgname}-${pkgver}/build"
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/docs/zectl.8" "${pkgdir}/usr/share/man/man8/zectl.8"
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
Expand Down
2 changes: 1 addition & 1 deletion src/zectl.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <string.h>

char const *const ZE_PROGRAM = "zectl";
char const *const ZECTL_VERSION = "0.1.1";
char const *const ZECTL_VERSION = "0.1.2";

/* Function pointer to command */
typedef libze_error (*command_func)(libze_handle *lzeh, int argc, char **argv);
Expand Down

0 comments on commit 469a5e6

Please sign in to comment.