summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 234848b6214a61ec7aa57d7c3a1a80705a560c48 (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
# Maintainer: Cristóbal Tapia <crtapia at gmail dot com>

pkgname=obs-ghostscript
pkgver=1.3
pkgrel=2
pkgdesc="OBS Plugin to allow inclusion of PDF documents in scenes"
arch=('x86_64' 'i686')
url="https://github.com/nleseul/${pkgname}"
license=('Unlincense')
depends=('obs-studio' 'ghostscript')
makedepends=('make')
source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('ef06d36d1ce42515f89cd56180aa38f4aaad612f28feb5d8e90cbe4d6bfba078')

prepare() {
    cd "$pkgname-$pkgver"
    sed -i 's:data/obs-plugins:share/obs/obs-plugins:g' CMakeLists.txt
    sed -i 's:obs-plugins/${_lib_suffix}bit:lib/obs-plugins:g' CMakeLists.txt
}

build() {
    cd "$pkgname-$pkgver"
    mkdir -p build
    cd build
    cmake .. \
        -DOBSSourcePath=/usr/include/obs/ \
        -DOBSLibraryPath=/usr/lib/obs-plugins/ \
        -DCMAKE_INSTALL_PREFIX='/usr'
    make
}

package() {
    cd "$pkgname-$pkgver/build"
    make DESTDIR="$pkgdir/" install
}

# vim:set ts=4 sw=4 et: