blob: 7fee96f16e0900543bbda4be7769ddfbc11ece82 (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Maintainer: YOUNG HO CHA <ganadist@gmail.com>
_pkgname=fontdiff
pkgname=${_pkgname}-git
_commit=a3917bb
pkgver=0.2.2.r2.ga3917bb
pkgrel=1
pkgdesc="Utility for testing fonts"
arch=(arm x86_64)
url="https://github.com/googlei18n/fontdiff"
license=('Apache2')
groups=()
depends=()
makedepends=("git")
optdepends=()
provides=("fontdiff")
conflicts=("fontdiff")
replaces=()
backup=()
options=(!emptydirs)
install=
changelog=
source=("git+https://github.com/googlei18n/${_pkgname}.git#commit=$_commit")
noextract=()
md5sums=('SKIP') #autofill using updpkgsums
pkgver() {
cd "$_pkgname"
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//g'
}
prepare() {
cd "$_pkgname"
git submodule init
git submodule update
}
build() {
cd "$_pkgname"
src/third_party/gyp/gyp -f make --depth . --generator-output build src/fontdiff/fontdiff.gyp
make --directory build
}
doinstall() {
location=$1
mode=$2
src=$3
dst=$4
[ -n "${dst}" ] || dst=$(basename "${src}")
dst="${pkgdir}"/"${location}"/"${dst}"
install -D -m"${mode}" "${src}" "${dst}"
}
dobin() {
doinstall /usr/bin 755 "$1" "$2"
}
dodoc() {
doinstall /usr/share/doc/"${_pkgname}" 644 "$1" "$2"
}
package() {
cd "$_pkgname"
doinstall /usr/share/licenses/"${_pkgname}" 644 LICENSE.md
for D in CONTRIBUTING.md README.md doc/fontdiff-1.png
do
dodoc "${D}" "${D}"
done
dodoc src/fontdiff/specimen.html
dobin build/out/Default/fontdiff
}
|