diff options
author | Kyle Keen | 2020-12-17 20:57:33 -0500 |
---|---|---|
committer | Kyle Keen | 2020-12-17 20:57:33 -0500 |
commit | 433cfc6625a087227eb9306dcd04af304f25fa2f (patch) | |
tree | d02c75e3d6dba5ce358b04f8843427e221a99af6 | |
download | aur-433cfc6625a087227eb9306dcd04af304f25fa2f.tar.gz |
moved from svn to git
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 44 |
2 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ed820a5860d0 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +# Generated by mksrcinfo v8 +# Fri Dec 18 01:57:32 UTC 2020 +pkgbase = codec2-git + pkgdesc = Open source 2400 bit/s speech codec + pkgver = 20201210 + pkgrel = 1 + url = http://codec2.org/ + arch = i686 + arch = x86_64 + license = LGPL + makedepends = subversion + makedepends = cmake + depends = glibc + provides = codec2 + conflicts = codec2 + source = git+https://github.com/drowe67/codec2 + md5sums = SKIP + +pkgname = codec2-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1f111e1b7257 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Kyle Keen <keenerd@gmail.com> +# Contributor: Kovivchak Evgen <oneonfire@gmail.com> + +pkgname=codec2-git +_gitname=codec2 +pkgver=20201210 +pkgrel=1 +pkgdesc="Open source 2400 bit/s speech codec" +arch=('i686' 'x86_64') +license=('LGPL') +#url="http://www.rowetel.com/blog/?page_id=452" +url="http://codec2.org/" +depends=('glibc') +makedepends=('subversion' 'cmake') +provides=('codec2') +conflicts=('codec2') +source=('git+https://github.com/drowe67/codec2') +md5sums=('SKIP') + +pkgver() { + cd "$_gitname" + git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//' +} + +build() { + cd "$_gitname" + mkdir -p build_linux + cd build_linux + cmake ../ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR:PATH=lib + make all +} + +package() { + cd "$_gitname" + install -m644 -D COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" + cd "build_linux" + make DESTDIR="$pkgdir" install + + # it won't install the binaries? + install -d "$pkgdir/usr/bin/" + cd src + find ./ -type f -executable -print0 | xargs -0 /usr/bin/install -t "$pkgdir/usr/bin/" + rm "$pkgdir/usr/bin/libcodec"* +} |