summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b870a9a0209256de9b06187d618f2f58cfc1c827 (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
38
39
40
41
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Wael Nasreddine <gandalf@siemens-mobiles.org>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=nted
pkgver=1.10.18
pkgrel=3
pkgdesc="A free music score editor for Linux."
arch=('i686' 'x86_64')
depends=('harfbuzz' 'gdk-pixbuf2' 'pango' 'gtk2' 'alsa-lib')
makedepends=('gcc49')
license=('GPL')
url="https://vsr.informatik.tu-chemnitz.de/staff/jan/nted/nted.xhtml"
options=('!libtool' '!strip' '!makeflags')
source=(https://vsr.informatik.tu-chemnitz.de/staff/jan/nted/sources/nted-1.10.18.tar.gz http://http.debian.net/debian/pool/main/n/nted/nted_1.10.18-11.debian.tar.xz)
md5sums=('0ca7aa23109171ab643a9b552487bd4b'
         'aceb0ce35f2f8df09262d7b1c8b3d91b')

prepare() {
  cd "$srcdir/$pkgname-$pkgver"
  
  for i in `head -10 $srcdir/debian/patches/series`
  do
    patch -p1 < $srcdir/debian/patches/$i 
  done
  mv configure.in configure.ac
}

build() {
  cd "$srcdir/$pkgname-$pkgver"
  aclocal
  automake --add-missing
  autoreconf
  CXX=g++-4.9 CXXFLAGS=" -std=c++11 -Wno-narrowing" ./configure --prefix=/usr 
  make
}

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