archrelease: copy trunk to extra-x86_64
[arch-packages.git] / portsmf / trunk / PKGBUILD
blob37167a6db0126089accbe1a2a63ee54b6bf76e6c
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Eric BĂ©langer <eric@archlinux.org>
4 pkgname=portsmf
5 pkgver=234
6 pkgrel=2
7 pkgdesc="Portable library for reading/writing Standard MIDI Files"
8 arch=('x86_64')
9 url="https://sourceforge.net/p/portmedia/wiki/portsmf/"
10 license=('MIT')
11 depends=('gcc-libs' 'glibc')
12 makedepends=('subversion')
13 provides=('libportSMF.so')
14 options=('!staticlibs')
15 source=("portsmf::svn+https://svn.code.sf.net/p/portmedia/code/portsmf/trunk#revision=$pkgver"
16         portsmf-shared.patch)
17 sha512sums=('SKIP'
18             'f2961c2da2e5b08e60cbbf7c3d47687ce75ad4f6d7ee1c4f4a5ef1212ef928fe1c61212dc11081155117e2adf51c9ac280e21f791f1da87f69a0dec00605426a')
20 pkgver() {
21   cd $pkgname
22   printf "%s" "$(svnversion | tr -d 'A-z')"
25 prepare() {
26   cd $pkgname
27   patch -Np1 -i "${srcdir}/portsmf-shared.patch"
28   autoreconf -vfi
29   chmod 755 configure
32 build() {
33   cd $pkgname
34   ./configure --prefix=/usr \
35               --libdir=/usr/lib \
36               --includedir=/usr/include/portsmf
37   make
40 package() {
41   cd $pkgname
42   make DESTDIR="${pkgdir}" includedir=/usr/include/portsmf install
43   install -vDm 644 portSMF.pc -t "${pkgdir}/usr/lib/pkgconfig/"
44   install -vDm 644 license.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
45   install -vDm 644 README.txt -t "${pkgdir}/usr/share/doc/${pkgname}"