aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dsf2flac
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2014-10-14 22:24:50 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2014-10-14 22:24:50 +0200
commit3ed713739365dfda8a98ba01bb092f739afe612c (patch)
tree2ac6ab0dd82a2b1001f02385fb49ea14b4eaa8e4 /testing/dsf2flac
parentac29cc338be46b86e61922f69d928645d71d5a9b (diff)
downloadaports-3ed713739365dfda8a98ba01bb092f739afe612c.tar.bz2
aports-3ed713739365dfda8a98ba01bb092f739afe612c.tar.xz
testing/dsf2flac: new aport
Diffstat (limited to 'testing/dsf2flac')
-rw-r--r--testing/dsf2flac/APKBUILD49
-rw-r--r--testing/dsf2flac/no-static.patch10
2 files changed, 59 insertions, 0 deletions
diff --git a/testing/dsf2flac/APKBUILD b/testing/dsf2flac/APKBUILD
new file mode 100644
index 0000000000..68adc94b51
--- /dev/null
+++ b/testing/dsf2flac/APKBUILD
@@ -0,0 +1,49 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=dsf2flac
+pkgver=0_svn20141014
+pkgrel=0
+pkgdesc="Command line tool to convert dsf audio files to flac"
+url="https://code.google.com/p/dsf2flac/"
+arch="all"
+license="GPL3"
+depends=""
+depends_dev="boost-dev id3lib-dev flac-dev libogg-dev"
+makedepends="$depends_dev cmake"
+install=""
+subpackages=""
+source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.gz
+ no-static.patch"
+svnurl="http://dsf2flac.googlecode.com/svn/trunk"
+disturl="dev.alpinelinux.org:/archive/$pkgname/"
+
+
+_builddir=$srcdir/$pkgname-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ cmake . || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ install -Dm755 dsf2flac \
+ "$pkgdir/usr/bin/dsf2flac" || return 1
+}
+
+md5sums="7fad18c6e2609dc9f504dbe6b8cb3794 dsf2flac-0_svn20141014.tar.gz
+bf87f878b715819714e3c09ef1a0a65e no-static.patch"
+sha256sums="9b09c7c31ad333a589d2781eab6d2d1f6b2225509fecc53ca3ccce2e32bd3e18 dsf2flac-0_svn20141014.tar.gz
+ddccabe02603cfab7297dc13ce16070255e0bf9ea4b16c885204e0f82fa1f1f6 no-static.patch"
+sha512sums="1e2db947b1b3958333f5c9476dfd162d48897d933e9bc37418e3fc4028423131af813be9536cba0fcfdacd9a7fa3c6563ef1638508746d96fb0629d0e75f4450 dsf2flac-0_svn20141014.tar.gz
+2b027a6c42c12babb4861d40e94dc573137dbbc48209e1ade29813107ba7c2915ea2685a365201a07d94ac3ae686ac613614feeda18655f6259b2e114a22cda4 no-static.patch"
diff --git a/testing/dsf2flac/no-static.patch b/testing/dsf2flac/no-static.patch
new file mode 100644
index 0000000000..c099143222
--- /dev/null
+++ b/testing/dsf2flac/no-static.patch
@@ -0,0 +1,10 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -2,7 +2,6 @@
+ project(dsf2flac)
+
+ set(CMAKE_CXX_FLAGS "-O3 -Wall")
+-set(CMAKE_EXE_LINKER_FLAGS "-static")
+ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmakemodules)
+
+ set( DSF2FLAC_SOURCE_FILES