blob: 34b55cc092f42bfdaae7fae3f955e2b67b085496 (
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
|
# Maintainer: Samim Pezeshki (psamim) <psamim@gmail.com>
_pkgname=kindle2anki
pkgname=${_pkgname}-git
pkgver=r22.f587b3d
pkgrel=1
pkgdesc='Add words from Kindle to Anki'
url='https://github.com/psamim/kindle2anki'
license=('GPL3')
source=('git+https://github.com/psamim/kindle2anki.git'
'kindle2anki.sh')
sha256sums=('SKIP'
'4fd11d9c95ff8f8c044a98248bc114cdcb7ee65ba10d2881a036fc419a677d68')
arch=('any')
depends=('anki'
'python'
'python-pyperclip'
'python-colorama'
'python-pyaudio'
'python-retrying')
makedepends=('git')
conflicts=('kindle2anki')
provides=('kindle2anki')
pkgver() {
cd "${srcdir}/${_pkgname}"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
package() {
install -d "${pkgdir}/usr/share/${_pkgname}"
cp -ar "${srcdir}/${_pkgname}/." "${pkgdir}/usr/share/${_pkgname}"
install -Dm755 "${srcdir}/kindle2anki.sh" "${pkgdir}/usr/bin/kindle2anki"
}
|