Commit ad126f1c authored by Satadru Pramanik's avatar Satadru Pramanik

requested changes

parent 905aed9b
......@@ -27,8 +27,7 @@ class Devil < Package
depends_on 'libjpeg_turbo'
def self.patch
system "find . -type f -exec sed -e 's,DESTINATION lib,DESTINATION lib#{CREW_LIB_SUFFIX},g' \
-i {} +"
system "find -type f -exec sed -i 's,DESTINATION lib,DESTINATION lib#{CREW_LIB_SUFFIX},g' {} +"
end
def self.build
......
......@@ -23,7 +23,7 @@ class Gsm < Package
})
def self.patch
# Patch from https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/gsm/trunk/gsm-shared.patch
# Patch from https://github.com/archlinux/svntogit-packages/blob/master/gsm/trunk/gsm-shared.patch
@gsm_patch = <<~'GSM_PATCH_EOF'
--- Makefile 2006-04-26 15:14:26.000000000 -0400
+++ Makefile 2010-06-19 16:53:25.000000000 -0400
......@@ -217,7 +217,7 @@ class Gsm < Package
GSM_PATCH_EOF
IO.write('gsm-shared.patch', @gsm_patch)
# system 'patch -p0 -i gsm-shared.patch'
system 'curl -Ls https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/gsm/trunk/gsm-shared.patch | patch -b'
system 'curl -Ls https://github.com/archlinux/svntogit-packages/raw/c5a7dd7fe79daea817539ae8315a7cd8eb9cced7/gsm/trunk/gsm-shared.patch | patch -b'
end
def self.build
......
require 'package'
class Openjpeg < Package
description 'OpenJPEG is an open-source JPEG 2000 codec written in C language.'
homepage 'https://github.com/uclouvain/openjpeg/'
version '2.3.1'
description 'An open source JPEG 2000 codec, version ${pkgver}'
homepage 'https://github.com/uclouvain/openjpeg'
version '2.4.0'
compatibility 'all'
source_url 'https://github.com/uclouvain/openjpeg/archive/v2.3.1.tar.gz'
source_sha256 '63f5a4713ecafc86de51bfad89cc07bb788e9bba24ebbf0c4ca637621aadb6a9'
source_url 'https://github.com/uclouvain/openjpeg/archive/v2.4.0.tar.gz'
source_sha256 '8702ba68b442657f11aaeb2b338443ca8d5fb95b0d845757968a7be31ef7f16d'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/openjpeg-2.3.1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/openjpeg-2.3.1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/openjpeg-2.3.1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/openjpeg-2.3.1-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/openjpeg-2.4.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/openjpeg-2.4.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/openjpeg-2.4.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/openjpeg-2.4.0-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '5cbfa188b4ef0e9adb59280c0adfdbeae57751743000afbaca8574a9e3349b59',
armv7l: '5cbfa188b4ef0e9adb59280c0adfdbeae57751743000afbaca8574a9e3349b59',
i686: 'c63933b2976c97ebcaea35ced82598958377b6e8fa9e984c74eca40afdcd9c40',
x86_64: '921c73296cf057b4c5606470c3de038492de21177b82ed659213dd04348aef33',
binary_sha256({
aarch64: '595710bad9c20bb9cf549c4ac128c38a7b95d765482a4686f92e9a7c2436492c',
armv7l: '595710bad9c20bb9cf549c4ac128c38a7b95d765482a4686f92e9a7c2436492c',
i686: 'bab4acb957c546518cff701f1c004778351c7d973bb0c3f42bd4c5e89fd37f87',
x86_64: '490073608d724068424b594ef15e77bdef75bcb44beebe6c8fe09eb99f06bd0a'
})
def self.build
Dir.mkdir 'builddir'
Dir.chdir 'builddir' do
system 'cmake',
"-DCMAKE_INSTALL_PREFIX=#{CREW_PREFIX}",
"-DOPENJPEG_INSTALL_LIB_DIR=#{CREW_LIB_PREFIX}",
'-DCMAKE_BUILD_TYPE=Release',
'..'
system 'make'
system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
cmake \
-G Ninja \
#{CREW_CMAKE_OPTIONS} \
-DBUILD_SHARED_LIBS=ON \
-DOPENJPEG_INSTALL_LIB_DIR='lib#{CREW_LIB_SUFFIX}' \
.."
end
system 'ninja -C builddir'
end
def self.install
Dir.chdir 'builddir' do
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end
require 'package'
class Openjpeg2 < Package
description 'An open source JPEG 2000 codec, version ${pkgver}'
homepage 'https://github.com/uclouvain/openjpeg'
version '2.4.0'
compatibility 'all'
source_url 'https://github.com/uclouvain/openjpeg/archive/v2.4.0.tar.gz'
source_sha256 '8702ba68b442657f11aaeb2b338443ca8d5fb95b0d845757968a7be31ef7f16d'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/openjpeg2-2.4.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/openjpeg2-2.4.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/openjpeg2-2.4.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/openjpeg2-2.4.0-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: 'a7c67af7623a7ab2fc66b203d698fb9c9090a59cd6dc8252e1e36f25d53b256f',
armv7l: 'a7c67af7623a7ab2fc66b203d698fb9c9090a59cd6dc8252e1e36f25d53b256f',
i686: 'aff2bc38195bd963339ad70f82deb2dee09ae62008370eb17260633bc7b792be',
x86_64: 'ce81a4fbddcc40c52c628e503b1a5f98e96ed665611d1739f6f6f6566c6d27fe'
})
def self.build
Dir.mkdir 'builddir'
Dir.chdir 'builddir' do
system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
cmake \
-G Ninja \
#{CREW_CMAKE_OPTIONS} \
-DBUILD_SHARED_LIBS=ON \
-DOPENJPEG_INSTALL_LIB_DIR='lib#{CREW_LIB_SUFFIX}' \
.."
end
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end
require 'package'
class Tesseract < Package
description 'An OCR program'
description 'A neural net (LSTM) based OCR engine which is focused on line recognition & an older OCR engine which recognizes character patterns.'
homepage 'https://github.com/tesseract-ocr/tesseract'
@_ver = '4.1.1'
version @_ver
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment