blob: 430d4b704888ad80b028a0da0def170b3251492e (
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
|
# Maintainer: Gary Wang <wzc782970009@gmail.com>
pkgname=deepin-ocr-git
pkgver=r103.479bd09
pkgrel=1
pkgdesc='deepin OCR Tool'
arch=('x86_64' 'aarch64')
url='https://github.com/linuxdeepin/deepin-ocr/'
license=('MIT')
depends=(
'opencv'
'ncnn'
)
makedepends=(
'git'
'qt5-tools'
'cmake'
'vulkan-headers'
)
optdepends=(
)
source=(
'git+https://github.com/linuxdeepin/deepin-ocr.git'
'be2eff7360e74ba4062e4c6a1f3328b5be1594c2.diff'
)
md5sums=(
'SKIP'
'SKIP'
)
pkgver() {
cd ${srcdir}/deepin-ocr
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build () {
cd ${srcdir}/deepin-ocr
git apply ${srcdir}/be2eff7360e74ba4062e4c6a1f3328b5be1594c2.diff
cmake -DCMAKE_INSTALL_PREFIX=/usr .
cmake --build . -j`nproc`
}
package() {
make -C ${srcdir}/deepin-ocr DESTDIR="$pkgdir" install
cd ${srcdir}/deepin-ocr
mkdir -p ${pkgdir}/usr/share/licenses/deepin-ocr-git
install ./LICENSE ${pkgdir}/usr/share/licenses/deepin-ocr-git/LICENSE
}
|