TaskLite icon indicating copy to clipboard operation
TaskLite copied to clipboard

AUR package

Open samhh opened this issue 5 years ago • 3 comments

Any interest in packaging TaskLite for the AUR? :slightly_smiling_face:

samhh avatar Aug 27 '20 20:08 samhh

Sure =), but I haven't worked with it yet. Can you help me?

ad-si avatar Aug 28 '20 07:08 ad-si

aura is a good example here, with a few AUR packages:

I also have my own bukubrow AUR package, but that's written in Rust so I'm unsure how helpful that'd be.

samhh avatar Aug 28 '20 11:08 samhh

I happened to piece together a PKGBUILD file. It worked well for me, but I haven't went through AUR guidelines yet so I did not rush publishing it to AUR.

# Maintainer: Valts Liepiņš <valts at tase dot lv>

pkgname=tasklite-git
pkgver=r311.34407e2
pkgrel=1
pkgdesc="CLI task manager built with Haskell and SQLite."
arch=('any')
url="https://tasklite.org/"
license=('AGPL')
makedepends=('git' 'stack')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+https://github.com/ad-si/TaskLite")
md5sums=('SKIP')

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

build() {
	cd "$srcdir/${pkgname%-git}"
	stack build
}

package() {
	cd "$srcdir/${pkgname%-git}"
	mkdir -p "$pkgdir/usr/bin"
	stack install tasklite-core --local-bin-path="$pkgdir/usr/bin/"
}

cipharius avatar Sep 02 '20 19:09 cipharius