blob: 7277493098e33b4aa7a06ee1af99565c51c9f412 (
plain)
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
|
_pkgname=minq-stopwatch
pkgname="${_pkgname}-git"
pkgver=r23.1bafe623da15f863411f7df3d79631e235716e38
pkgrel=1
epoch=
pkgdesc="A terminal based timer that remembers where you left off"
arch=(x86_64 i686)
url="https://github.com/kuche1/${_pkgname}.git"
license=('GPL')
groups=()
depends=(python python-art)
makedepends=(git python)
checkdepends=()
optdepends=()
provides=("${_pkgname}")
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("git+$url")
noextract=()
md5sums=("SKIP")
validpgpkeys=()
pkgver() {
cd "${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse HEAD)"
}
prepare() {
cd "${_pkgname}"
}
build() {
cd "${_pkgname}"
}
check() {
cd "${_pkgname}"
python3 --version
}
package() {
cd "${_pkgname}"
mkdir -p "${pkgdir}/opt/${pkgname}"
cp -rf * "${pkgdir}/opt/${pkgname}"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
mkdir -p "${pkgdir}/usr/bin/"
ln -s "/opt/${pkgname}/minq_stopwatch.py" "${pkgdir}/usr/bin/${_pkgname}"
}
|