diff options
author | willemw12 | 2021-06-24 22:07:27 +0200 |
---|---|---|
committer | willemw12 | 2021-06-24 22:07:27 +0200 |
commit | 353f32cccb17caebd8f9100cfa2ffaee31206b17 (patch) | |
tree | 3b81c1d2655ea405491eea33cd3e846b413be120 /PKGBUILD | |
parent | 7f00b74a7c636a044b0f906f971086d5ba64d087 (diff) | |
download | aur-todo.c-git.tar.gz |
Change arch and pkgver()
Don't install known BSD license.
Minor edits.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -1,31 +1,31 @@ +# Maintainer: willemw <willemw12@gmail.com> # Contributor: wenLiangcan <boxeed at gmail dot com> # Contributor: Rafael Beraldo <rafaelluisberaldo@gmail.com> +#pkgname=todo-c-git pkgname=todo.c-git -pkgver=20161020 +pkgver=0.2.6.r11.g3a6c7f9 pkgrel=1 -pkgdesc="Command line lightweight todo tool with readable storage , written in C" -arch=("any") +pkgdesc="Command line lightweight todo tool with readable storage, written in C" +arch=('x86_64') url="https://github.com/hit9/todo.c" license=('BSD') makedepends=('git') -provides=('todo.c') -conflicts=('todo.c' 'todo') -source=("$pkgname"::'git+https://github.com/hit9/todo.c.git') -md5sums=('SKIP') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}" 'todo') +source=("$pkgname::git+$url.git") +sha256sums=('SKIP') pkgver() { - cd "$srcdir/$pkgname" - git log -1 --format='%cd' --date=short | tr -d -- '-' + cd $pkgname + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { - cd "$srcdir/$pkgname" - make + make -C $pkgname } package() { - cd "$srcdir/$pkgname" - install -Dm755 "src/todo" "$pkgdir/usr/bin/todo" - install -Dm644 "LICENSE-BSD" "$pkgdir/usr/share/licenses/todo.c/LICENSE-BSD" + install -Dm755 $pkgname/src/todo -t "$pkgdir/usr/bin" } + |