# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Tobias Bohrmann (PlainTextField) <honeypot.carbage@aechelon.de>

pkgname=tepl
pkgver=4.2.0
pkgrel=2
pkgdesc="Library that eases the development of GtkSourceView-based text editors and IDEs"
arch=(x86_64)
url="https://wiki.gnome.org/Projects/Tepl"
license=(LGPL2.1)
depends=(amtk gtksourceview4 uchardet)
makedepends=(gobject-introspection gtk-doc vala)
source=("https://download.gnome.org/sources/tepl/${pkgver%.*}/$pkgname-$pkgver.tar.xz")
sha256sums=('8839d4428ecdd87fd5abc657ebbe5a9601a57262e9946845e47dec264e669ccd')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make
}

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