Created
August 23, 2021 14:17
-
-
Save samtux/c2b06479fa240efeebe95f21513a067e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Leonidas Arvanitis <l.arvanitis@gmail.com> | |
_binname=evolus-pencil-bin | |
_pkgname_base=pencil | |
_pkgname=evolus-pencil | |
_desktopfile="${_pkgname_base}.desktop" | |
_mimefile="${_pkgname}-mime.xml" | |
pkgname=${_pkgname}-bin | |
pkgver=3.1.0 | |
_pkgver=3.1.0.ga | |
pkgrel=1 | |
pkgdesc="An open-source GUI prototyping tool - Evolus release" | |
arch=('x86_64') | |
url="http://pencil.evolus.vn/" | |
license=('GPL2') | |
depends=('gconf') | |
makedepends=('binutils' 'tar') | |
provides=($_pkgname) | |
conflicts=($_pkgname $_pkgname_base) | |
source=("http://pencil.evolus.vn/dl/V${_pkgver}/pencil_${_pkgver}_amd64.deb" | |
"${_desktopfile}" | |
"${_mimefile}") | |
sha1sums=('a016f0824dcfb791adadd564ef4c287bc4dfaa1d' | |
'fd1a937f77388e46917fa566000acd89c5d181c3' | |
'975e4818189aa041bfe4df6e20c69d82cd130298') | |
package() { | |
# Extract data | |
tar xfz "${srcdir}/data.tar.gz" -C "${pkgdir}/" | |
# Package files | |
mv "${pkgdir}/opt/pencil-$_pkgver" "${pkgdir}/usr/share/$_pkgname" | |
# Binary file | |
install -d "${pkgdir}/usr/bin/" | |
ln -s "../share/${_pkgname}/${_pkgname_base}" "${pkgdir}/usr/bin/${_pkgname_base}" | |
# Desktop file | |
mkdir -p "${pkgdir}/usr/share/applications/" | |
cp -f "${pkgdir}/usr/share/evolus-pencil/${_desktopfile}" "${pkgdir}/usr/share/applications/" | |
# Mimetype file | |
install -d "${pkgdir}/usr/share/mime/packages/" | |
cp "${srcdir}/${_mimefile}" "${pkgdir}/usr/share/mime/packages/" | |
# Cleanup | |
rm -rf "${pkgdir}/opt" | |
rm -rf "${pkgdir}/usr/share/doc" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment