-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPKGBUILD
More file actions
35 lines (32 loc) · 783 Bytes
/
PKGBUILD
File metadata and controls
35 lines (32 loc) · 783 Bytes
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
# Maintainer: Taylor McKinnon <mail@tmacs.space>
pkgname='today-dir-git'
pkgver='0'
pkgrel=1
pkgdesc='Simple scratch directory and notes manager'
arch=('any')
url="https://github.com/tmacro/today"
license=('BSD-3-Clause')
groups=()
depends=()
makedepends=('git' 'python-setuptools')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git }")
replaces=()
backup=()
options=()
install=
source=('git+https://github.com/tmacro/today.git')
noextract=()
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-dir-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${pkgname%-dir-git}"
python setup.py build
}
package() {
cd "$srcdir/${pkgname%-dir-git}"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}