ad-si / TaskLite

The CLI task manager for power users
https://tasklite.org
GNU Affero General Public License v3.0
218 stars 12 forks source link

AUR package #23

Open samhh opened 4 years ago

samhh commented 4 years ago

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

ad-si commented 4 years ago

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

samhh commented 4 years ago

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.

cipharius commented 4 years ago

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/"
}