aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6661417f2d709c23c9679d501afe8ed97b6c45ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer: Felipe Alfonso Gonzalez <f.alfonso@res-ear.ch>
pkgname=term-notes
pkgver=1.0.4
pkgrel=1
pkgdesc="Terminal-based note-taking application"
arch=('x86_64')
url="https://github.com/felipealfonsog/TermNotes"
license=('MIT')
depends=('gcc' 'vim' 'nano' 'neovim' 'libutil-linux' 'coreutils')

source=("https://github.com/felipealfonsog/TermNotes/archive/refs/tags/v.${pkgver}.tar.gz")

sha256sums=('ee0993e675697753282e874a79bce68fb433b1ecd1ca87736737ebbfba477558')

build() {
  # Extract the source code directly to the $srcdir
  tar xf "v.${pkgver}.tar.gz" -C "$srcdir" --strip-components=1
  cd "$srcdir"/TermNotes-"$pkgver"/src

  # Use symbolic link for term_notes_linux.c
  ln -s term_notes_linux.c term_notes.c

  gcc -o term-notes term_notes.c
}

package() {
  cd "$srcdir"/TermNotes-"$pkgver"/src
  install -Dm755 term-notes "${pkgdir}/usr/bin/term-notes"
}