mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
70 lines
1.4 KiB
Bash
70 lines
1.4 KiB
Bash
SUMMARY="Aozora Bunko text viewer"
|
|
DESCRIPTION="Aobook is a viewer for Aozora Bunko which is a digital library \
|
|
of Japanese-language literature."
|
|
HOMEPAGE="https://osdn.net/projects/aobook/"
|
|
COPYRIGHT="2014-2017 Azel"
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="2"
|
|
localRevision="3"
|
|
SOURCE_URI="https://github.com/hanya/aobook-haiku/archive/v$portVersion-$localRevision.tar.gz"
|
|
CHECKSUM_SHA256="9b39981a204e6094563c2435979da4eea1aa2ef3d1a5e9580961a4e9812d34a7"
|
|
SOURCE_DIR="aobook-haiku-$portVersion-$localRevision"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
|
|
PROVIDES="
|
|
aobook = $portVersion
|
|
app:Aobook = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
lib:libfontconfig
|
|
lib:libfreetype
|
|
lib:libiconv
|
|
lib:libjpeg
|
|
lib:libpng
|
|
lib:libz
|
|
"
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
devel:libfontconfig
|
|
devel:libfreetype
|
|
devel:libiconv
|
|
devel:libjpeg
|
|
devel:libpng
|
|
devel:libz
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
makefile_engine
|
|
cmd:g++
|
|
cmd:gcc
|
|
cmd:make
|
|
"
|
|
|
|
USER_SETTINGS_FILES="
|
|
settings/aobook directory
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cd mlib
|
|
make -f Makefile.haiku $jobArgs OBJ_DIR=objects
|
|
|
|
cd ../src
|
|
make -f Makefile.haiku $jobArgs OBJ_DIR=objects
|
|
make -f Makefile.haiku catalogs OBJ_DIR=objects
|
|
make -f Makefile.haiku bindcatalogs OBJ_DIR=objects
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $appsDir
|
|
cp -af src/objects/aobook $appsDir/Aobook
|
|
|
|
mkdir -p $dataDir/aobook/doc
|
|
cp -af doc/manual.html $dataDir/aobook/doc
|
|
|
|
addAppDeskbarSymlink $appsDir/Aobook
|
|
}
|
|
|