Last active
          February 18, 2024 13:15 
        
      - 
      
 - 
        
Save umireon/2306ac0c4880c2dc7fdb68cd8314f6a4 to your computer and use it in GitHub Desktop.  
    obs-ocr
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | pkgbase = obs-ocr | |
| pkgdesc = OCR Plugin for OBS based on Tesseract | |
| pkgver = 0.0.5 | |
| pkgrel = 1 | |
| url = https://github.com/occ-ai/obs-ocr | |
| arch = x86_64 | |
| license = GPL2 | |
| makedepends = cmake | |
| depends = obs-studio | |
| depends = opencv | |
| depends = curl | |
| depends = tesseract | |
| source = obs-ocr-0.0.5.tar.xz::https://github.com/occ-ai/obs-ocr/releases/download/0.0.5/obs-ocr-0.0.5-source.tar.xz | |
| sha256sums = 00cc82b6828227b1a7d34b65c64de7e3b37cccd4504e15745cabcabbe0f3ab11 | |
| pkgname = obs-ocr | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Maintainer: Kaito Udagawa <umireon at gmail dot com> | |
| pkgname=obs-ocr | |
| pkgver=0.0.5 | |
| pkgrel=1 | |
| pkgdesc='OCR Plugin for OBS based on Tesseract' | |
| _source="${pkgname}-${pkgver}" | |
| arch=(x86_64) | |
| url='https://github.com/occ-ai/obs-ocr' | |
| license=('GPL2') | |
| depends=('obs-studio' 'opencv' 'curl' 'tesseract') | |
| makedepends=('cmake') | |
| source=("${_source}.tar.xz::$url/releases/download/${pkgver}/${pkgname}-${pkgver}-source.tar.xz") | |
| sha256sums=('00cc82b6828227b1a7d34b65c64de7e3b37cccd4504e15745cabcabbe0f3ab11') | |
| build() { | |
| cmake -B build -S "$_source-source" -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DENABLE_FRONTEND_API=ON -DENABLE_QT=ON -DUSE_SYSTEM_OPENCV=ON -DUSE_SYSTEM_TESSERACT=ON | |
| cmake --build build | |
| } | |
| package() { | |
| DESTDIR="$pkgdir" cmake --install build | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment