Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Miles Alan
aports
Commits
b6456180
Commit
b6456180
authored
8 years ago
by
Sören Tempel
Browse files
Options
Downloads
Patches
Plain Diff
testing/py-fonttools: new aport
parent
f9f2a40c
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
testing/py-fonttools/APKBUILD
+67
-0
67 additions, 0 deletions
testing/py-fonttools/APKBUILD
with
67 additions
and
0 deletions
testing/py-fonttools/APKBUILD
0 → 100644
+
67
−
0
View file @
b6456180
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer:
pkgname
=
py-fonttools
pkgver
=
3.3.0
pkgrel
=
0
pkgdesc
=
"Converts OpenType and TrueType fonts to and from XML"
url
=
"https://github.com/fonttools/fonttools"
arch
=
"noarch"
license
=
"BSD"
depends
=
"py-numpy"
makedepends
=
"python2-dev python3-dev py-setuptools"
install
=
""
subpackages
=
"py2-
${
pkgname
#py-
}
:_py2 py3-
${
pkgname
#py-
}
:_py3
$pkgname
-doc"
source
=
"py-fonttools-
$pkgver
.tar.gz::https://github.com/fonttools/fonttools/archive/
$pkgver
.tar.gz"
builddir
=
"
$srcdir
/fonttools-
$pkgver
"
build
()
{
cd
"
$builddir
"
python2 setup.py build
||
return
1
python3 setup.py build
||
return
1
}
package
()
{
mkdir
-p
"
$pkgdir
"
/usr/bin/
local
name
;
for
name
in
fonttools pyftinspect pyftmerge pyftsubset ttx
;
do
ln
-s
$name
-3
"
$pkgdir
"
/usr/bin/
$name
||
return
1
done
cd
"
$builddir
"
for
man
in
Doc/
*
.?
;
do
install
-Dm644
"
$man
"
\
"
$pkgdir
"
/usr/share/man/man
${
man
##*.
}
/
${
man
##*/
}
||
return
1
done
}
_py
()
{
local
python
=
"
$1
"
local
pyver
=
"
${
1
:6:1
}
"
pkgdesc
=
"
$pkgdesc
(for
$python
)"
depends
=
"
$depends
$python
"
install_if
=
"
$pkgname
=
$pkgver
-r
$pkgrel
$python
"
cd
"
$builddir
"
$python
setup.py
install
--prefix
=
/usr
\
--root
=
"
$subpkgdir
"
||
return
1
# Add version suffix to executable files.
local
path
;
for
path
in
"
$subpkgdir
"
/usr/bin/
*
;
do
mv
"
$path
"
"
$path
-
$pyver
"
||
return
1
done
# Remove man pages and ship them in the -doc subpackage.
rm
-rf
"
$subpkgdir
"
/usr/share/man/
}
_py2
()
{
replaces
=
"
$pkgname
"
_py python2
}
_py3
()
{
_py python3
}
md5sums
=
"10ab21b6500a92821f1046fce6f0f253 py-fonttools-3.3.0.tar.gz"
sha256sums
=
"f247d46404d10c60f409036c384ec1a0f449e55343dd1820b030992fff818eed py-fonttools-3.3.0.tar.gz"
sha512sums
=
"c1835d248e54f77bf8ed993b44366c0e4743eab59d4a85610b60f0c01ba208ebf8bc0f088dd6d84594f10357e11d246bc57db29123bcf69641c5149468a82fbd py-fonttools-3.3.0.tar.gz"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment