diff options
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 27 |
2 files changed, 17 insertions, 15 deletions
@@ -1,5 +1,5 @@ pkgbase = obs-text-pango - pkgdesc = This plugin provides a text source for OBS Studio which is layed out and rendered using Pango + pkgdesc = Prefer obs-text-pthread instead | This plugin provides a text source for OBS Studio which is layed out and rendered using Pango pkgver = 1.0 pkgrel = 2 url = https://github.com/kkartaltepe/obs-text-pango @@ -10,7 +10,6 @@ pkgbase = obs-text-pango source = obs-text-pango-1.0.tar.gz::https://github.com/kkartaltepe/obs-text-pango/archive/v1.0.tar.gz source = updated_french.patch::https://patch-diff.githubusercontent.com/raw/kkartaltepe/obs-text-pango/pull/12.patch sha256sums = 07bc145256393a902637ade6820d03988b655796748733ecec53790d370d2e4e - sha256sums = SKIP + sha256sums = 059b6364966f8c90044b27efc100136ca03e8093c69cc91c10b79b0f26640669 pkgname = obs-text-pango - @@ -1,8 +1,9 @@ # Maintainer: tytan652 <tytan652@tytanium.xyz> + pkgname=obs-text-pango pkgver=1.0 pkgrel=2 -pkgdesc="This plugin provides a text source for OBS Studio which is layed out and rendered using Pango" +pkgdesc="Prefer obs-text-pthread instead | This plugin provides a text source for OBS Studio which is layed out and rendered using Pango" arch=('x86_64') url="https://github.com/kkartaltepe/obs-text-pango" license=("GPL2") @@ -14,29 +15,31 @@ source=( ) sha256sums=( '07bc145256393a902637ade6820d03988b655796748733ecec53790d370d2e4e' - "SKIP" + '059b6364966f8c90044b27efc100136ca03e8093c69cc91c10b79b0f26640669' ) -prepare() { - rm -rf fakeroot -} - build() { cd "$pkgname-$pkgver" - patch -Np1 < "$srcdir"/updated_french.patch + + patch -Np1 < $srcdir/updated_french.patch + cmake -B build \ -DOBS_INCLUDE_DIRS='/usr/include/obs' \ -DCMAKE_INSTALL_PREFIX='/' + make -C build } package() { - mkdir -p "$pkgdir"/usr/lib/obs-plugins - mkdir -p "$pkgdir"/usr/share/obs/obs-plugins + mkdir -p $pkgdir/usr/lib/obs-plugins + mkdir -p $pkgdir/usr/share/obs/obs-plugins cd "$pkgname-$pkgver" - make -C build DESTDIR="$srcdir/fakeroot/" install - cp -a "$srcdir"/fakeroot/obs-plugins/64bit/libtext-pango.so "$pkgdir"/usr/lib/obs-plugins - cp -a "$srcdir"/fakeroot/data/obs-plugins/text-pango "$pkgdir"/usr/share/obs/obs-plugins/ + _fake_install_dir="$srcdir/plugin-install" + + make -C build DESTDIR="$_fake_install_dir/" install + + cp -a $_fake_install_dir/obs-plugins/64bit/libtext-pango.so $pkgdir/usr/lib/obs-plugins + cp -a $_fake_install_dir/data/obs-plugins/text-pango $pkgdir/usr/share/obs/obs-plugins/ }
\ No newline at end of file |