-
Notifications
You must be signed in to change notification settings - Fork 2
/
PKGBUILD
40 lines (32 loc) · 1.04 KB
/
PKGBUILD
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
33
34
35
36
37
38
39
40
# Maintainer: l6174 <[email protected]>
pkgname=todominal
pkgver=3.2
pkgrel=1
pkgdesc="A todo list application for the terminal and rofi"
arch=('any')
url="https://github.com/l6174/todominal"
OPTIONS=(strip !debug)
license=('GPL')
depends=('figlet' 'sed')
makedepends=('gcc')
optdepends=('rofi: rofi support')
source=("git+https://github.com/l6174/todominal.git")
build() {
cd "$srcdir/$pkgname/src"
g++ main.cpp -o "$srcdir/$pkgname/bin/todominal"
}
package() {
# Create necessary directories
install -d "$pkgdir/usr/bin"
install -d "$pkgdir/usr/share/licenses/$pkgname"
install -d "$pkgdir/usr/share/doc/$pkgname"
# Install application binary
install -m755 "$srcdir/$pkgname/bin/todominal" "$pkgdir/usr/bin/"
# Install rofi binary
install -m755 "$srcdir/$pkgname/bin/todominal-rofi" "$pkgdir/usr/bin/"
# Install license file
install -m644 "$srcdir/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/"
# Install README file
install -m644 "$srcdir/$pkgname/README.md" "$pkgdir/usr/share/doc/$pkgname/"
}
sha256sums=('SKIP')