summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 10d83d57aecea4069be2fc49882957cf992a640a (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
# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>
# Contributor: Robert Knauer <robert@privatdemail.net>
# Contributor: Eric Forgeot http://anamnese.online.fr

pkgname=abcpp
pkgver=1.4.6
pkgrel=2
pkgdesc='A simple yet powerful preprocessor designed for, but not limited to, ABC music files'
url='http://abcplus.sourceforge.net'
license=(GPL)
arch=(i686 x86_64)
depends=(glibc)
source=("https://sourceforge.net/projects/abcplus/files/$pkgname/$pkgname-$pkgver.tar.gz")
sha256sums=('05a9a7f81b35aff8f1b03ad0c41539508812ec1e52d2f584a180d3c12e35edc1')

prepare() {
  cd $pkgname-$pkgver
  sed -i \
    -e 's|\$(CC) \$(CFLAGS)|$(CC) $(CFLAGS) $(LDFLAGS) -D VERSION="$(VERSION)"|' \
    -e '/^CFLAGS/d' \
    Makefile
}

build() {
  cd $pkgname-$pkgver
  make
}

package() {
  cd $pkgname-$pkgver
  # program
  install -Dm755 abcpp -t "$pkgdir"/usr/bin
  # abc include files
  install -Dm644 *.abp -t "$pkgdir"/usr/share/$pkgname
  # documentation & examples
  install -Dm644 docs/* -t "$pkgdir"/usr/share/doc/$pkgname
  install -Dm644 examples/* -t "$pkgdir"/usr/share/doc/$pkgname/examples
}