aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
Diffstat (limited to 'community')
-rw-r--r--community/libdvdcss/APKBUILD36
-rw-r--r--community/libdvdcss/replace-error.patch101
2 files changed, 137 insertions, 0 deletions
diff --git a/community/libdvdcss/APKBUILD b/community/libdvdcss/APKBUILD
new file mode 100644
index 0000000000..62595018ea
--- /dev/null
+++ b/community/libdvdcss/APKBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
+pkgname=libdvdcss
+pkgver=1.4.2
+pkgrel=0
+pkgdesc="Library for accessing DVDs like a block device without having to bother about the decryption"
+url="http://www.videolan.org/developers/libdvdcss.html"
+arch="all"
+license="GPL-2.0-or-later"
+makedepends="file linux-headers"
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://download.videolan.org/pub/libdvdcss/$pkgver/libdvdcss-$pkgver.tar.bz2
+ replace-error.patch
+ "
+
+prepare() {
+ default_prepare
+}
+
+build() {
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+check() {
+ make check
+}
+
+sha512sums="e46ccded1951046ec481604c5b533c435be14cd0e734cd5315b61868836a20edf4cdc7c1466c2f4ed374de4382c5e758ace700e84aadcb29513001d696f1049c libdvdcss-1.4.2.tar.bz2
+6aa9510b662d39527935f90fc500d27a8ff6bfc45a967ee3b3affcb0637a3d9ce9acb0967e88c65711a74eeb2061c63b14c542ec47b1dded29a5729f7e659f8e replace-error.patch"
diff --git a/community/libdvdcss/replace-error.patch b/community/libdvdcss/replace-error.patch
new file mode 100644
index 0000000000..194fef0054
--- /dev/null
+++ b/community/libdvdcss/replace-error.patch
@@ -0,0 +1,101 @@
+--- a/src/ioctl.c
++++ b/src/ioctl.c
+@@ -220,7 +220,7 @@
+ *pi_copyright = p_buffer[ 4 ];
+
+ #else
+-# error "DVD ioctls are unavailable on this system"
++ printf("DVD ioctls are unavailable on this system\n");
+
+ #endif
+ return i_ret;
+@@ -353,7 +353,7 @@
+ memcpy( p_key, p_buffer + 4, DVD_DISCKEY_SIZE );
+
+ #else
+-# error "DVD ioctls are unavailable on this system"
++ printf("DVD ioctls are unavailable on this system\n");
+
+ #endif
+ return i_ret;
+@@ -483,7 +483,7 @@
+ memcpy( p_key, p_buffer + 5, DVD_KEY_SIZE );
+
+ #else
+-# error "DVD ioctls are unavailable on this system"
++ printf("DVD ioctls are unavailable on this system\n");
+
+ #endif
+
+@@ -580,7 +580,7 @@
+ *pi_agid = p_buffer[ 7 ] >> 6;
+
+ #else
+-# error "DVD ioctls are unavailable on this system"
++ printf("DVD ioctls are unavailable on this system\n");
+
+ #endif
+ return i_ret;
+@@ -688,7 +688,7 @@
+ memcpy( p_challenge, p_buffer + 4, DVD_CHALLENGE_SIZE );
+
+ #else
+-# error "DVD ioctls are unavailable on this system"
++ printf("DVD ioctls are unavailable on this system\n");
+
+ #endif
+ return i_ret;
+@@ -798,7 +798,7 @@
+ *pi_asf = p_buffer[ 7 ] & 1;
+
+ #else
+-# error "DVD ioctls are unavailable on this system"
++ printf("DVD ioctls are unavailable on this system\n");
+
+ #endif
+ return i_ret;
+@@ -901,7 +901,7 @@
+ memcpy( p_key, p_buffer + 4, DVD_KEY_SIZE );
+
+ #else
+-# error "DVD ioctls are unavailable on this system"
++ printf("DVD ioctls are unavailable on this system\n");
+
+ #endif
+ return i_ret;
+@@ -984,7 +984,7 @@
+ &sdc, sizeof(sdc), &ulParamLen,
+ NULL, 0, &ulDataLen);
+ #else
+-# error "DVD ioctls are unavailable on this system"
++ printf("DVD ioctls are unavailable on this system\n");
+
+ #endif
+ return i_ret;
+@@ -1093,7 +1093,7 @@
+ p_buffer, sizeof(p_buffer), &ulDataLen );
+
+ #else
+-# error "DVD ioctls are unavailable on this system"
++ printf("DVD ioctls are unavailable on this system\n");
+
+ #endif
+ return i_ret;
+@@ -1202,7 +1202,7 @@
+ p_buffer, sizeof(p_buffer), &ulDataLen );
+
+ #else
+-# error "DVD ioctls are unavailable on this system"
++ printf("DVD ioctls are unavailable on this system\n");
+
+ #endif
+ return i_ret;
+@@ -1329,7 +1329,7 @@
+ *p_scheme = p_buffer[ 6 ];
+
+ #else
+-# error "DVD ioctls are unavailable on this system"
++ printf("DVD ioctls are unavailable on this system\n");
+
+ #endif
+ return i_ret;