summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7106541623bfb70e4cc8dd5435342b3eabe24257 (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
# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Allan McRae <allan@archlinux.com>
# Contributor: gyo <nucleogeek@gmail.com>

pkgname=sdl2_pango
pkgver=2.1.5
pkgrel=1
pkgdesc="Connects Pango to SDL2"
arch=("x86_64")
url="https://github.com/markuskimius/SDL2_Pango"
license=("LGPL-2.1-only")
depends=("pango" "freetype2" "sdl2")
makedepends=("git")
_commit=3afd884fddf8d81dbe2c140135deea0c79de31c1
source=("sdl2_pango-$_commit::git+$url.git#commit=$_commit" "freetype2.patch")
sha256sums=(SKIP SKIP)

prepare() {
  cd "$srcdir/$pkgname-$_commit"
  patch -Np1 < "../freetype2.patch"
}

build() {
  cd "$srcdir/$pkgname-$_commit"
  ./configure --prefix=/usr
  make
}

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