diff --git a/ebook-tools/.SRCINFO b/ebook-tools/.SRCINFO new file mode 100644 index 0000000000..890e88ed61 --- /dev/null +++ b/ebook-tools/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = ebook-tools + pkgdesc = Tools for accessing and converting various ebook file formats + pkgver = 0.2.2 + pkgrel = 8 + url = https://sourceforge.net/projects/ebook-tools/ + arch = x86_64 + license = MIT + makedepends = cmake + depends = convertlit + depends = glibc + depends = libxml2 + depends = libzip + depends = sh + source = https://downloads.sourceforge.net/ebook-tools/ebook-tools-0.2.2.tar.gz + source = crash-fix.patch + sha256sums = cbc35996e911144fa62925366ad6a6212d6af2588f1e39075954973bbee627ae + sha256sums = ad556ce08909727a6022c9f1632086ccb8623a81a4f39cd34722e22116e14527 + +pkgname = ebook-tools diff --git a/ebook-tools/.nvchecker.toml b/ebook-tools/.nvchecker.toml new file mode 100644 index 0000000000..17e9c2b122 --- /dev/null +++ b/ebook-tools/.nvchecker.toml @@ -0,0 +1,4 @@ +[ebook-tools] +source = 'regex' +url = 'https://sourceforge.net/projects/ebook-tools/files/' +regex = 'ebook-tools/([\d.]+)/' diff --git a/ebook-tools/PKGBUILD b/ebook-tools/PKGBUILD index 7d6a46756f..3925c3c6b2 100644 --- a/ebook-tools/PKGBUILD +++ b/ebook-tools/PKGBUILD @@ -4,36 +4,35 @@ pkgname=ebook-tools pkgver=0.2.2 -pkgrel=7 -pkgdesc="Tools for accessing and converting various ebook file formats" +pkgrel=8 +pkgdesc='Tools for accessing and converting various ebook file formats' arch=(x86_64 powerpc64le powerpc64 powerpc riscv64) -url="https://sourceforge.net/projects/ebook-tools/" -license=(custom) -depends=(libzip libxml2 convertlit) +url='https://sourceforge.net/projects/ebook-tools/' +license=(MIT) +depends=(convertlit + glibc + libxml2 + libzip + sh) makedepends=(cmake) -source=("https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz" +source=(https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz crash-fix.patch) sha256sums=('cbc35996e911144fa62925366ad6a6212d6af2588f1e39075954973bbee627ae' 'ad556ce08909727a6022c9f1632086ccb8623a81a4f39cd34722e22116e14527') prepare() { - mkdir -p build - cd $pkgname-$pkgver patch -p2 -i ../crash-fix.patch # https://sourceforge.net/p/ebook-tools/bugs/8/ } build() { - cd build - cmake ../$pkgname-$pkgver \ + cmake -B build -S $pkgname-$pkgver \ -DCMAKE_INSTALL_PREFIX=/usr - make + cmake --build build } package() { - cd build - make DESTDIR="$pkgdir" install + DESTDIR="$pkgdir" cmake --install build - install -Dm644 "$srcdir"/$pkgname-$pkgver/LICENSE \ - -t "$pkgdir"/usr/share/licenses/$pkgname/ + install -Dm644 $pkgname-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname }