Commit 649e722d authored by Jean-Baptiste Delisle's avatar Jean-Baptiste Delisle

add Archlinux package

parent 4be80de0
# Maintainer: Jean-Baptiste Delisle <jb dot delisle at aliceadsl dot fr>
pkgname=bed
pkgver=1.0
pkgrel=1
pkgdesc="BEd: Beamer Editor, GUI for LaTeX Beamer presentations."
arch=(any)
url="https://framagit.org/delisle/bed"
license=('GPL3')
depends=('python>=3.0','python-pyqt5','python-poppler-qt5','texlive-core')
optdepends=('python-pygments')
makedepends=()
install='bed.install'
source=("$pkgname-$pkgver.tar.gz::https://framagit.org/delisle/bed/repository/archive.tar.gz?ref=v$pkgver")
md5sums=('5da70e1f75695c3f767f63b05e850c82')
tag=6299317ac17b7d4da5f9316021fc1a90019e58a0
prepare() {
cd $pkgname-v$pkgver-$tag
sed -i -e "s#/tmp/python3#/usr/bin/python3#" python/bed.py
sed -i -e "s#/tmp/pdflatex#pdflatex#" python/settings.py
sed -i 's#/local##g' launcher/bed.desktop
}
package(){
mkdir -p $pkgdir/usr/bin
mkdir -p $pkgdir/usr/share/bed
mkdir -p $pkgdir/usr/share/texmf/tex/latex/bed
mkdir -p $pkgdir/usr/share/applications
mkdir -p $pkgdir/usr/share/pixmaps
cd $pkgname-v$pkgver-$tag
cp python/*.py $pkgdir/usr/share/bed
chmod +x $pkgdir/usr/share/bed/bed.py
cp icons/* $pkgdir/usr/share/bed
cp translation/*.qm $pkgdir/usr/share/bed
cp launcher/bed.desktop $pkgdir/usr/share/applications/
cp latex/bed.sty $pkgdir/usr/share/texmf/tex/latex/bed/
cd $pkgdir/usr/bin/
ln -s ../share/bed/bed.py bed
cd $pkgdir/usr/share/pixmaps
ln -s ../bed/bed.svg bed.svg
}
post_install() {
texhash
}
post_upgrade() {
texhash
}
post_remove() {
texhash
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment