diff options
author | Alexandros Theodotou | 2019-04-12 16:07:02 +0100 |
---|---|---|
committer | Alexandros Theodotou | 2019-04-12 16:07:02 +0100 |
commit | 09e960b5cc63742c236bada48fe1d9b071bd7a4b (patch) | |
tree | 59f9c0257b094ef7acb9902518228d21a1f022c8 | |
download | aur-09e960b5cc63742c236bada48fe1d9b071bd7a4b.tar.gz |
first push
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 48 |
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..dfe26eb16dd6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = mingw-w64-libsmf + pkgdesc = A BSD-licensed C library for handling SMF ("*.mid") files. + pkgver = 1.3 + pkgrel = 1 + url = https://sourceforge.net/projects/libsmf/ + arch = x86_64 + license = BSD + depends = mingw-w64-glib2 + options = !libtool + options = !strip + options = !buildflags + options = !makeflags + source = https://downloads.sourceforge.net/project/libsmf/libsmf/1.3/libsmf-1.3.tar.gz + sha512sums = 3c383ec8f2fbe48ddab1008b3ecfe6941c38e33cfd963eabdf07f09c8c04c1b8758c8774b25672f70c29b570f2c250c795979d19b39c5027810b54b07035497d + +pkgname = mingw-w64-libsmf + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..484af17aab98 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Alexandros Theodotou <alex@zrythm.org> +# `libsmf` Maintainer: David Runge <dave@sleepmap.de> +# Contributor: Stefan Husmann <stefan-husmann@t-online.de> +# Contributor: foutrelis +# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: SpepS <dreamspepser at yahoo dot it> + +_pkgbase=libsmf +pkgname=mingw-w64-libsmf +pkgver=1.3 +pkgrel=1 +pkgdesc='A BSD-licensed C library for handling SMF ("*.mid") files.' +arch=('x86_64') +url="https://sourceforge.net/projects/libsmf/" +license=('BSD') +depends=('mingw-w64-glib2') +options=('!libtool' '!strip' '!buildflags' '!makeflags') +source=("https://downloads.sourceforge.net/project/${_pkgbase}/${_pkgbase}/${pkgver}/${_pkgbase}-${pkgver}.tar.gz") +sha512sums=('3c383ec8f2fbe48ddab1008b3ecfe6941c38e33cfd963eabdf07f09c8c04c1b8758c8774b25672f70c29b570f2c250c795979d19b39c5027810b54b07035497d') + +build() { + cd "${srcdir}" + + for _arch in "${_architectures[@]}"; do + rm -rf build-${_arch} + cp -r "${_pkgbase}-${pkgver}" build-${_arch} + pushd build-${_arch} + + ${_arch}-configure + make + + popd + done +} + +package() { + cd "${srcdir}" + + for _arch in "${_architectures[@]}"; do + pushd "build-${_arch}" + + make DESTDIR="${pkgdir}" install + install -vDm644 COPYING "${pkgdir}/usr/$_arch/share/licenses/${_pkgbase}/LICENSE" + + popd + done +} + |