Add a tag or create release
leucos opened this issue · comments
It would be nice to have a tag/release so we could package this nice calculator in distributions (working on it for Arch).
Thanks !
Hey @leucos, thanks for creating this issue. I normally use tags like 0.1.0
but for some projects I had to prefix it with v
, as in v0.1.0
. For the Arch packaging, would some style work better than the other?
@soveran just use what you like best. I will strip the 'v', no problem.
Nice. Here you go https://aur.archlinux.org/packages/clac/
FTR, the PKGBUILD file & build process:
# Maintainer: Michel Blanc <mb@mbnet.fr>
pkgname=clac
pkgver=0.1.0.r0.gb24478a
pkgrel=1
pkgdesc='A command line, stack-based calculator with postfix notation'
url='https://github.com/soveran/clac'
arch=('i686' 'x86_64')
license=('BSD')
source=("clac::git+https://github.com/soveran/clac")
sha1sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$pkgname"
make
}
package() {
cd "$pkgname"
manprefix="${pkgdir}/usr/share/man"
mkdir -p "${manprefix}/man1"
echo Created ${manprefix}/man1
make MANPREFIX="${manprefix}" PREFIX="${pkgdir}/usr" install
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
@soveran poke when when you need a release ou if you want to take package maintenance ownership.
The build process:
git clone ssh://aur@aur.archlinux.org/clac.git
cd clac/
makepkg -s PKGBUILD
makepkg --printsrcinfo > .SRCINFO
git commit -am 'Release XYZ'
git push
@leucos Thanks a lot, I will ping you on the next release!
Hey @leucos, I just released version 0.2.0. I also added a wiki page with links to the official packages.
It's up on AUR https://aur.archlinux.org/packages/clac/
@leucos Thanks!
Done !
Done !
@leucos Version 0.3.1 was released, but it's not critical as it only includes a fix in the man page. This version was also added to the main homebrew repository. My intention was for 0.3.0 to be stable for a long time, but then somebody spotted an error in the man page :-)
It's alive 👻 !
Thanks!!!