updated on Fri Jan 20 16:18:17 UTC 2012
[aur-mirror.git] / seal / PKGBUILD
blob2924e7cdbd73106b5af88f89fcbb14d114aa984f
1 # Contributor: robb_force <robb_force@holybuffalo.net>
3 pkgname=seal
4 pkgver=1.07
5 pkgrel=3
6 pkgdesc="Synthetic Audio Library lets you write applications that are able to play digital audio waveforms and music modules on many platforms."
7 url="http://www.sonicspot.com/sealsdk/sealsdk.html"
8 license=('LGPL')
9 arch=('i686' 'x86_64')
10 source=(http://www.sonicspot.com/sealsdk/${pkgname}${pkgver%.*}${pkgver#*.}.zip \
11   http://ftp.debian.org/debian/pool/main/s/${pkgname}/${pkgname}_${pkgver}-14.diff.gz)
12 md5sums=('ed237a6d8c8c21501374e5b4a1113e4a'
13          '185e3523b004aa571abc112d130a63c2')
14 install=seal.install
16 build()
18   cd ${startdir}/src
20   # Create the patches from the debian package
21   patch -p1 < seal_1.07-14.diff
22   
23   # Apply the patches
24   cd ${pkgname}-${pkgver}
25   for i in ${startdir}/src/debian/patches/*.diff; do
26     patch -p1 < $i
27   done
29   # Move into the seal src directory and compile
30   cd src
31   make -f Linux/Makefile || return 1
32   
33   # Manually install the files
34   cd ${startdir}/src/${pkgname}-${pkgver}
35   install -Dm0755 src/mp ${startdir}/pkg/usr/bin/mp
36   install -d ${startdir}/pkg/usr/lib/${pkgname}/
37   install -m0755 lib/Linux/* ${startdir}/pkg/usr/lib/${pkgname}/
38   install -Dm0644 include/audio.h ${startdir}/pkg/usr/include/seal.h
40   # Include the license
41   install -Dm644 LICENSE.TXT ${startdir}/pkg/usr/share/licenses/custom/${pkgname}/license.txt