build process uses professional Makefile structure

This commit is contained in:
gabizinho 2026-01-13 16:18:28 -05:00
parent f1b11fa466
commit acf5d5620c
No known key found for this signature in database
GPG key ID: A66BC3502F39D3A4
3 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
pkgbase = blindpaste
pkgdesc = a TUI blackboard for quick note taking
pkgver = 1.1.5
pkgver = 1.2.0
pkgrel = 1
url = https://projectgrid.net/portfolio/blindpaste
install = advice.install

1
.gitignore vendored
View file

@ -1,4 +1,5 @@
*.bpo
blindpaste/
*.pkg.tar.zst
pkg/

View file

@ -1,6 +1,6 @@
# Maintainer: Gabriel Oliveira da Silva <glcbofs@proton.me>
pkgname=blindpaste
pkgver=1.1.5
pkgver=1.2.0
pkgrel=1
pkgdesc="a TUI blackboard for quick note taking"
arch=("x86_64")
@ -23,12 +23,11 @@ sha256sums=(
build()
{
cd "$pkgname"
gcc $CFLAGS -o "$pkgname" blindpaste.c blindparse.c
make
}
package()
{
cd "$pkgname"
install -Dm0755 -t "$pkgdir/usr/bin/" "$pkgname"
install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
make DESTDIR="$pkgdir" install
}