Skip to content

Commit

Permalink
Create arch PKGBUILD for release
Browse files Browse the repository at this point in the history
  • Loading branch information
johnramsden committed May 29, 2018
1 parent c28c02c commit e097c62
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,4 @@ Pipfile.lock

/packaging/arch/*
!packaging/arch/PKGBUILD
!packaging/arch/PKGBUILD-git
22 changes: 9 additions & 13 deletions packaging/arch/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,29 +1,25 @@
# Maintainer: John Ramsden <johnramsden [at] riseup [dot] net>

pkgname=zedenv-git
pkgver=r103.0f21e17
pkgname=zedenv
pkgver=0.1.0
_version_suffix="alpha"
pkgrel=1
pkgdesc="Utility to manage Boot Environments using ZFS"
arch=('any')
url="http://github.com/johnramsden/zedenv"
license=('BSD' 'custom:BSD 3 clause')
depends=('zfs-linux' 'python' 'python-setuptools' 'python-click' 'python-pyzfscmds-git')
depends=('zfs-linux' 'python' 'python-setuptools' 'python-click' 'python-pyzfscmds')
makedepends=('git' 'python-pip')
source=('zedenv::git+https://github.com/johnramsden/zedenv#branch=master')
md5sums=('SKIP')
conflicts=('zedenv')

pkgver() {
cd "${srcdir}/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/johnramsden/${pkgname}/archive/v${pkgver}-${_version_suffix}.tar.gz")
md5sums=('2a38da07513fe7dd40a6c851fbad2589')
conflicts=('zedenv-git')

build() {
cd "${srcdir}/${pkgname%-git}"
cd "${srcdir}/${pkgname}-${pkgver}-${_version_suffix}"
python setup.py build
}

package() {
cd "${srcdir}/${pkgname%-git}"
cd "${srcdir}/${pkgname}-${pkgver}-${_version_suffix}"
python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
}
29 changes: 29 additions & 0 deletions packaging/arch/PKGBUILD-git
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Maintainer: John Ramsden <johnramsden [at] riseup [dot] net>

pkgname=zedenv-git
pkgver=r103.0f21e17
pkgrel=1
pkgdesc="Utility to manage Boot Environments using ZFS"
arch=('any')
url="http://github.com/johnramsden/zedenv"
license=('BSD' 'custom:BSD 3 clause')
depends=('zfs-linux' 'python' 'python-setuptools' 'python-click' 'python-pyzfscmds-git')
makedepends=('git' 'python-pip')
source=('zedenv::git+https://github.com/johnramsden/zedenv#branch=master')
md5sums=('SKIP')
conflicts=('zedenv')

pkgver() {
cd "${srcdir}/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
cd "${srcdir}/${pkgname%-git}"
python setup.py build
}

package() {
cd "${srcdir}/${pkgname%-git}"
python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
}

0 comments on commit e097c62

Please sign in to comment.