-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
49 lines (44 loc) · 1.13 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
41
42
43
44
45
46
47
48
49
# Maintainer: Abir-Tx <[email protected]>
pkgname=appnotex
pkgver=1.1.1
pkgrel=1.2
pkgdesc="Quick terminal based note keeper for Linux Apps"
arch=(x86_64)
url="https://github.com/Abir-Tx/AppNotEx.git"
license=('GPL')
depends=(sqlite3)
makedepends=(git make cmake gzip)
checkdepends=()
optdepends=()
provides=(appnotex)
conflicts=(appnotex)
replaces=()
backup=()
options=()
install=
changelog=
source=("git+$url")
md5sums=('SKIP')
validpgpkeys=()
build() {
cd AppNotEx
git submodule init && git submodule update
make builddir
cd build
cmake ..
make appnotex
}
package() {
cd AppNotEx
cd build
sudo make install
cd ..
install -Dm644 -v docs/README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -Dm644 -v LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 -v docs/appnotex.1 "${pkgdir}/usr/local/man/man1/appnotex.1"
sudo gzip "${pkgdir}/usr/local/man/man1/appnotex.1"
sudo mandb
# install -Dm644 -v example/config.json "${pkgdir}/usr/share/doc/${pkgname}/config.json"
# Creating the config directory & copying the example config
install -Dm644 -v example/config.json "$HOME/.config/appnotex/config.json"
}