diff options
author | James Meyer <james.meyer@operamail.com> | 2012-08-07 02:31:12 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-08-07 02:31:12 (GMT) |
commit | a2b45f4a7be5355f65ce182e3148a2a3e68bec2a (patch) | |
tree | 244bd13188f616169ef1f5389989c1b36f62267c /abs/core/gsm/PKGBUILD | |
parent | c14d6373643502acb1f968300e0bbbe9e179f3a7 (diff) | |
download | linhes_pkgbuild-a2b45f4a7be5355f65ce182e3148a2a3e68bec2a.zip linhes_pkgbuild-a2b45f4a7be5355f65ce182e3148a2a3e68bec2a.tar.gz linhes_pkgbuild-a2b45f4a7be5355f65ce182e3148a2a3e68bec2a.tar.bz2 |
gsm 1.0.13
new
Diffstat (limited to 'abs/core/gsm/PKGBUILD')
-rw-r--r-- | abs/core/gsm/PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/abs/core/gsm/PKGBUILD b/abs/core/gsm/PKGBUILD new file mode 100644 index 0000000..b31a794 --- /dev/null +++ b/abs/core/gsm/PKGBUILD @@ -0,0 +1,43 @@ +# $Id: $ +# Maintainer: Jan de Groot <jgc@archlinux.org> +# Contributor: Maxime de Roucy <maxime.deroucy@gmail.com> +# Contributor: Darwin Bautista <djclue917@gmail.com> + +pkgname=gsm +pkgver=1.0.13 +pkgrel=7 +pkgdesc="Shared libraries for GSM 06.10 lossy speech compression" +arch=('i686' 'x86_64') +url="http://www.quut.com/gsm/" +license=('custom') +depends=('glibc') +source=("http://www.quut.com/${pkgname}/${pkgname}-${pkgver}.tar.gz" + 'gsm.patch') +md5sums=('c1ba392ce61dc4aff1c29ea4e92f6df4' + '30f46c92d0a5e5654258e707a9e8b5a6') + +build() { + cd "${srcdir}/${pkgname}-${pkgver%.*}-pl${pkgver##*.}/" + + patch -Np0 -i "${srcdir}/${pkgname}.patch" + + # flags for shared lib + CFLAGS="${CFLAGS} -fPIC" + make CCFLAGS="-c ${CFLAGS}" +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver%.*}-pl${pkgver##*.}/" + + # Prepare directories + install -m755 -d "${pkgdir}"/usr/{bin,lib,include/gsm,share/{licenses/${pkgname},man/man{1,3}}} + + make -j1 INSTALL_ROOT="${pkgdir}/usr" \ + GSM_INSTALL_INC="${pkgdir}/usr/include/gsm" \ + GSM_INSTALL_MAN="${pkgdir}/usr/share/man/man3" \ + TOAST_INSTALL_MAN="${pkgdir}/usr/share/man/man1" \ + install + + # Install license + install -m644 COPYRIGHT ${pkgdir}/usr/share/licenses/${pkgname}/license.txt +} |