98 lines
4.3 KiB
Bash
98 lines
4.3 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://git.disroot.org/joborun-pkg/jobcore/src/branch/main/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=gdbm
|
|
pkgver=1.24
|
|
# latest, versioned translation from https://translationproject.org/domain/gdbm.html
|
|
_translation_version=1.23.90
|
|
pkgrel=01
|
|
pkgdesc="GNU database library"
|
|
url="https://www.gnu.org/software/gdbm/gdbm.html"
|
|
depends=(glibc sh)
|
|
makedepends=(git readline)
|
|
provides=(libgdbm_compat.so libgdbm.so)
|
|
#options=(debug)
|
|
#source=(https://ftp.gnu.org/gnu/gdbm/$pkgname-$pkgver.tar.gz{,.sig})
|
|
source=(git+https://git.gnu.org.ua/gdbm.git?signed#tag=v$pkgver
|
|
https://translationproject.org/PO-files/da/$pkgname-$_translation_version.da.po
|
|
https://translationproject.org/PO-files/de/$pkgname-$_translation_version.de.po
|
|
https://translationproject.org/PO-files/eo/$pkgname-$_translation_version.eo.po
|
|
https://translationproject.org/PO-files/es/$pkgname-$_translation_version.es.po
|
|
https://translationproject.org/PO-files/fi/$pkgname-$_translation_version.fi.po
|
|
https://translationproject.org/PO-files/fr/$pkgname-$_translation_version.fr.po
|
|
https://translationproject.org/PO-files/ja/$pkgname-$_translation_version.ja.po
|
|
https://translationproject.org/PO-files/ka/$pkgname-$_translation_version.ka.po
|
|
https://translationproject.org/PO-files/pl/$pkgname-$_translation_version.pl.po
|
|
https://translationproject.org/PO-files/pt_BR/$pkgname-$_translation_version.pt_BR.po
|
|
https://translationproject.org/PO-files/ro/$pkgname-$_translation_version.ro.po
|
|
https://translationproject.org/PO-files/ru/$pkgname-$_translation_version.ru.po
|
|
https://translationproject.org/PO-files/sr/$pkgname-$_translation_version.sr.po
|
|
https://translationproject.org/PO-files/sv/$pkgname-$_translation_version.sv.po
|
|
https://translationproject.org/PO-files/uk/$pkgname-$_translation_version.uk.po
|
|
https://translationproject.org/PO-files/vi/$pkgname-$_translation_version.vi.po)
|
|
|
|
prepare() {
|
|
local po_file new_po
|
|
|
|
# prepare translations
|
|
touch $pkgname/po/LINGUAS
|
|
for po_file in *.po; do
|
|
new_po="${po_file/$pkgname-$_translation_version./}"
|
|
cp -v $po_file $pkgname/po/$new_po
|
|
printf "%s\n" ${new_po/.po/} >> $pkgname/po/LINGUAS
|
|
done
|
|
|
|
cd $pkgname
|
|
autoreconf -fiv
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname
|
|
./configure --prefix=/usr \
|
|
--enable-libgdbm-compat
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make check -C $pkgname
|
|
}
|
|
|
|
package() {
|
|
depends+=(libreadline.so)
|
|
|
|
make DESTDIR="$pkgdir" install -C $pkgname
|
|
install -vDm 644 $pkgname/{NOTE-WARNING,AUTHORS,NEWS,README} -t "$pkgdir/usr/share/doc/$pkgname"
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(GPL-3.0-or-later)
|
|
|
|
validpgpkeys=('325F650C4C2B6AD58807327A3602B07F55D0C732') # Sergey Poznyakoff <gray@gnu.org>
|
|
|
|
sha256sums=('731b9bdf5e16cc435c1ff81083eba393b292538d976a96d6403cb22f8570fa26'
|
|
'98e1bf4bee2924b52b67e6c3d14522b041687c0d483d70a92080d196481cb7e3'
|
|
'bd58c32ec5a8a8ea791392cd6bb473e7fe11544b9abb11db18c98897da42ad33'
|
|
'bc22308a132cd422c68796c8c79868530ba2b3c30a7405d6234ff4520308e790'
|
|
'5c19d8ea6959c1f29ef9c6267e1a0259b5b70b6d2b107e7f295063cb4e332a18'
|
|
'51c57615316a87b6f87a931340811dde86ee70b1a76ac13ed4eb2a9c61827991'
|
|
'bf7c9235472972ea878538c3d7e3e17b6c97cdd16115a201580b032051cabfc2'
|
|
'b4a2a73d56bfdcc8ff3bcca65365a303e5533edf7c754092d857e9cac007c901'
|
|
'724882df589e9d2e49d560b908bb859436e3292eeaade33bc56430128d833597'
|
|
'a58b7057cbbda18435737027071132d0e1e6a87bf923b2ef6a1bcabea2f08e38'
|
|
'46230698ec9e5a053f2525135c170318efca10ead4db82f56d495ad067b2057b'
|
|
'3003c43d2ac7ac6df7a5a29a947803fb5eea7016b0d171e69ee99a712408f15d'
|
|
'7936e1146af7415677334cba4a42efdb9eabf552a5a41d6be6943b3b48de5338'
|
|
'231d39fea8c286a273346a34b7ba6528a00ab5c1f310a5f1935ba8b3a6f8b1d2'
|
|
'2d0ace64bd1ad6b929fb5f104d9c3796a01bdce39bb3070e085e810ac9fc0cae'
|
|
'03cb83630f44a18fc306014287182e525e24d67122215f36a853aaa7c085ff44'
|
|
'df4eedb50871ab97203576a1a48caab2c04fdafbb8a76af8f7f988ec36955aa3')
|
|
|
|
## 10035888215972bab4f24e0d9570cced45701db4c3ad8f9c926bf5f65a8cf954 gdbm-1.24-01-x86_64.pkg.tar.lz
|
|
|