-
-
Notifications
You must be signed in to change notification settings - Fork 92
/
PKGBUILD
63 lines (54 loc) · 1.61 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Maintainer: Murli Tawari <[email protected]>
pkgname=dooit-git
_pkgname=${pkgname%-git}
pkgver=2.0.0
pkgrel=1
pkgdesc="A todo manager that you didn't ask for, but needed!"
url="https://github.com/kraanzu/dooit"
arch=('any')
license=('MIT')
depends=('python' 'python-pyperclip' 'python-pyaml' 'python-poetry' 'python-dateutil' 'python-textual' 'python-appdirs-git' 'python-six')
makedepends=('python-build' 'python-wheel' 'python-installer')
source=("$_pkgname::git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd $_pkgname
git describe --long --tags --abbrev=7 --match='v[0-9]*' |
sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$_pkgname"
echo "$pkgdir"
python -m build --wheel --no-isolation
}
package() {
cd "$_pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
}
# Maintainer: Murli Tawari <[email protected]>
pkgname=dooit-git
_pkgname=${pkgname%-git}
pkgver=2.0.0
pkgrel=1
pkgdesc="A todo manager that you didn't ask for, but needed!"
url="https://github.com/kraanzu/dooit"
arch=('any')
license=('MIT')
depends=('python' 'python-pyperclip' 'python-pyaml' 'python-poetry' 'python2-dateutil' 'python-textual' 'python-appdirs-git' 'python-six')
makedepends=('python-build' 'python-wheel' 'python-installer')
source=("$_pkgname::git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd $_pkgname
git describe --long --tags --abbrev=7 --match='v[0-9]*' |
sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$_pkgname"
echo "$pkgdir"
python -m build --wheel --no-isolation
}
package() {
cd "$_pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
}