archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / pd-gem / trunk / PKGBUILD
blobbb812942db01bf2b5d2edb98e3a0f913c953b265
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 _name=Gem
4 pkgname=pd-gem
5 pkgver=0.94
6 pkgrel=11
7 pkgdesc="Graphics Environment for Multimedia"
8 arch=(x86_64)
9 url="https://github.com/umlaeute/Gem"
10 license=(GPL2)
11 groups=(pd-externals)
12 # TODO: potentially add gmerlin, libmpeg3 and glewmx (if that's still a thing)
13 depends=(assimp ftgl glew libdv libiec61883 pd sdl2 ttf-dejavu zlib)
14 makedepends=(imagemagick libvncserver vlc)
15 optdepends=('vlc: video capture support'
16             'libvncserver: video capture support'
17             'imagemagick: image processing support')
18 source=(
19   "$pkgname-$pkgver.tar.gz::https://github.com/umlaeute/${_name}/archive/v${pkgver}.tar.gz"
20   "$pkgname-0.94-error.patch"
22 sha512sums=('356e4f2a27131f927cd5d20ba9010088cc22930f313f61f54dd107db041b6cb2042ab5d530bae069e3ccdccd0a8fed1152631c6f187f4f4602f37d763356d316'
23             '314fab766e93edfb41b3a97dce4d570dacb04390caf7e7f8aac86a2ad927029cad529d58302d65fb3453a2f9c6a03d361521a28db1933a6973087ea5f6f0320a')
24 b2sums=('1ca45c5a71e094aef04778538e6d0c83f4b13f233e6038507d5510ca904476f19ed1e70c011796e66e3688f8a8b40b13f823678b6b1baba877ac0b67eb9c6698'
25         '2fab38f8ecaf99dc092017fef9a137943a66a9e5d8700455689f52a5ec485c997283abe81c892769671daf580820894ad78b62b9615ca92e6901919f55a33250')
27 prepare() {
28   cd "${_name}-${pkgver}"
29   # fix issues with error() calls: https://github.com/umlaeute/Gem/issues/287
30   patch -Np1 -i ../"$pkgname-0.94-error.patch"
31   autoreconf -fiv
34 build() {
35   cd "${_name}-${pkgver}"
36   ./configure --prefix=/usr \
37               --with-default-font=/usr/share/fonts/TTF/DejaVuSans.ttf
38   # prevent excessive overlinking due to libtool
39   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
40   make
43 package() {
44   make DESTDIR="$pkgdir/" install -C "${_name}-${pkgver}"