blob: ffc9e7a65b611c2014f56a9c5cdab8498527729f (
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
30
31
32
|
# 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"
# Ensure term_notes_linux.c is present in the build directory
cp term_notes_linux.c "$srcdir"/TermNotes-"$pkgver"/src/term_notes_linux.c
# Use term_notes_linux.c for the build
gcc -o term-notes "$srcdir"/TermNotes-"$pkgver"/src/term_notes_linux.c
}
package() {
cd "$srcdir"
install -Dm755 term-notes "${pkgdir}/usr/bin/term-notes"
}
|