This repository has been archived by the owner on Jun 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
PKGBUILD
70 lines (57 loc) · 1.46 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
64
65
66
67
68
69
70
# Maintainer: Your Name <joaqimpla@gmail.com>
#_target=mingw-w64
_target=x86_64-pc-linux
#_target=x86_64-mingw-w64
#_sysroot=/usr/local/${_target}
_sysroot=/usr
_name=plan
#pkgname=${_target}-${_name}
pkgname=${_name}
#pkgver=$(git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g')
pkgver=0.1
pkgrel=2
epoch=
pkgdesc="TODO: Package Description"
arch=("x86_64")
url=""
license=('GPL')
groups=()
depends=("opencv" "tesseract" "tesseract-data-eng" "leptonica" "vtk" "pkg-config")
#depends=("${_target}-opencv" "${_target}-glfw" "${_target}-glew" "${_target}-tesseract-ocr-git" "${_target}-poppler")
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
#source=("$pkgname-$pkgver.pkg.tar")
#"$pkgname-$pkgver.patch")
#source=("ftp://ftp.gnu.org/gnu/sed/$pkgname-$pkgver.tar.xz")
#source=("https://github.com/Zenoobia/plan/releases/download/${pkgver}-${pkgrel}/${pkgname}-${pkgver}-${pkgrel}-${arch}.pkg.tar")
noextract=()
validpgpkeys=()
#_target=x86_64-
prepare() {
cd ..
./autogen.sh
}
build() {
../configure --prefix=${_sysroot} --bindir=${_sysroot}/bin \
--with-sysroot=${_sysroot} \
--build=$CHOST --host=$CHOST --target=${_target} \
--disable-debug
make
}
package() {
make DESTDIR="${pkgdir}"/ install
# clean-up cross compiler root
#rm -r ${pkgdir}/${_sysroot}/{bin,man}
#rm -r ${pkgdir}/${_sysroot}/bin
}
install() {
make DESTDIR="${_sysroot}" install
}