Initial commit

This commit is contained in:
Mario Ray Mahardhika
2017-07-28 05:23:09 +07:00
commit 8cc1fbf4b8
4 changed files with 94 additions and 0 deletions

20
.SRCINFO Normal file
View File

@@ -0,0 +1,20 @@
# Generated by mksrcinfo v8
# Thu Jul 27 22:20:42 UTC 2017
pkgbase = karlyriceditor
pkgdesc = A program which lets you edit and synchronize lyrics with karaoke songs in various formats.
pkgver = 2.2
pkgrel = 1
url = https://www.ulduzsoft.com/linux/karaoke-lyrics-editor/
install = karlyriceditor.install
arch = i686
arch = x86_64
license = GPL
depends = qt5-base
depends = desktop-file-utils
source = openssl-1.1.X.patch
source = karlyriceditor-2.2.tar.gz::https://sourceforge.net/projects/karlyriceditor/files/2.2/karlyriceditor-2.2.tar.gz/download?nowrap
md5sums = 7d510835a99d36362b7ba0cb81e734a8
md5sums = b59ac716a34bfb07e0c21cd61e01ca9e
pkgname = karlyriceditor

26
PKGBUILD Normal file
View File

@@ -0,0 +1,26 @@
# Maintainer: Mario Ray Mahardhika <leledumbo_cool@yahoo.co.id>
pkgname=karlyriceditor
pkgver=2.2
pkgrel=1
pkgdesc="A program which lets you edit and synchronize lyrics with karaoke songs in various formats."
arch=('i686' 'x86_64')
url="https://www.ulduzsoft.com/linux/karaoke-lyrics-editor/"
license=('GPL')
depends=('qt5-base' 'desktop-file-utils')
source=('openssl-1.1.X.patch' "karlyriceditor-$pkgver.tar.gz::https://sourceforge.net/projects/karlyriceditor/files/$pkgver/karlyriceditor-$pkgver.tar.gz/download?nowrap")
md5sums=('7d510835a99d36362b7ba0cb81e734a8' 'b59ac716a34bfb07e0c21cd61e01ca9e')
install=$pkgname.install
build() {
patch -p0 < openssl-1.1.X.patch
cd karlyriceditor-$pkgver
qmake
make
}
package() {
cd karlyriceditor-$pkgver
install -Dm755 bin/karlyriceditor $pkgdir/usr/bin/karlyriceditor
install -Dm644 packages/karlyriceditor.desktop $pkgdir/usr/share/applications/karlyriceditor.desktop
install -Dm644 packages/karlyriceditor.png $pkgdir/usr/share/pixmaps/karlyriceditor.png
}

4
karlyriceditor.install Normal file
View File

@@ -0,0 +1,4 @@
postinstall() {
gtk-update-icon-cache -f /usr/share/icons/hicolor
update-desktop-database -q
}

44
openssl-1.1.X.patch Normal file
View File

@@ -0,0 +1,44 @@
diff -ruN karlyriceditor-2.2/src/kfn_file_parser.cpp karlyriceditor-2.2-fixed/src/kfn_file_parser.cpp
--- karlyriceditor-2.2/src/kfn_file_parser.cpp 2013-02-05 08:52:34.795945000 +0700
+++ karlyriceditor-2.2-fixed/src/kfn_file_parser.cpp 2017-07-11 02:04:10.331059063 +0700
@@ -314,10 +314,9 @@
#if defined (KFN_SUPPORT_ENCRYPTION)
// A file is encrypted, decrypt it
- EVP_CIPHER_CTX ctx;
- EVP_CIPHER_CTX_init( &ctx );
+ EVP_CIPHER_CTX *ctx = EVP_CIPHER_CTX_new();
- EVP_DecryptInit_ex( &ctx, EVP_aes_128_ecb(), 0, (const unsigned char*) m_aesKey.data(), 0 );
+ EVP_DecryptInit_ex( ctx, EVP_aes_128_ecb(), 0, (const unsigned char*) m_aesKey.data(), 0 );
QByteArray array( entry.length_out, 0 );
int total_in = 0, total_out = 0;
@@ -335,15 +334,15 @@
if ( bytesRead != toRead )
{
- EVP_CIPHER_CTX_cleanup( &ctx );
+ EVP_CIPHER_CTX_free(ctx);
m_errorMsg = "File truncated";
return QByteArray();
}
// Decrypt the content
- if ( !EVP_DecryptUpdate( &ctx, (unsigned char*) outbuf, &toWrite, (unsigned char*) buffer, bytesRead ) )
+ if ( !EVP_DecryptUpdate( ctx, (unsigned char*) outbuf, &toWrite, (unsigned char*) buffer, bytesRead ) )
{
- EVP_CIPHER_CTX_cleanup( &ctx );
+ EVP_CIPHER_CTX_free(ctx);
m_errorMsg = "Decryption failed";
return QByteArray();
}
@@ -353,7 +352,7 @@
total_in += bytesRead;
}
- EVP_CIPHER_CTX_cleanup( &ctx );
+ EVP_CIPHER_CTX_free(ctx);
return array;
#else
m_errorMsg = "File is encrypted, but decryption support is not compiled in";