Last active
July 1, 2018 18:18
-
-
Save axionl/a245ede53a5c8b6cddcccfa8f23ee95e to your computer and use it in GitHub Desktop.
SieloBrowser-PKGBUILD
This file contains hidden or 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: Ariel AxionL <[email protected]> | |
pkgname=sielo-browser-git | |
_pkgname=sielo-browser | |
pkgver=r1071.0787986 | |
pkgrel=1 | |
pkgdesc="A simple, customizable and fast web browser" | |
arch=('x86_64') | |
depends=('qt5-base' 'qt5-webengine') | |
makedepends=('git' 'cmake' 'imagemagick' | |
'qt5-webchannel' 'qt5-location' 'qt5-declarative') | |
conflicts=("sielo-browser") | |
provides=("sielo-browser") | |
url="https://github.com/SieloBrowser/SieloBrowser" | |
license=('MIT') | |
source=("$pkgname::git+${url}" | |
"https://raw.githubusercontent.com/SieloBrowser/SieloBrowser/master/LICENSE" | |
"${_pkgname}.desktop") | |
sha256sums=('SKIP' | |
'4188f2493b00dc3c8f3ec23485a1af12d6b50cc4e3273bc47cee9c1580f5e4c3' | |
'cd42f495ac22e2cf46441d59839bcb0a744b7b368392cbbdc85763e305759af7') | |
pkgver() { | |
cd "$srcdir/$pkgname" | |
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | |
} | |
build() { | |
cd ${pkgname} | |
mkdir build && cd build | |
cmake -DCMAKE_BUILD_TYPE=Release .. | |
make -j $(grep -c processor /proc/cpuinfo) | |
cd .. | |
for i in 16 24 32 48 64 96 128 256; do | |
mkdir -p icon/${i}x${i}/apps | |
convert icons/other/ic_sielo.png -resize ${i}x${i} icon/${i}x${i}/apps/${_pkgname}.png | |
done | |
} | |
package() { | |
# License | |
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE | |
# Install Icons and desktop file | |
install -Dm644 ${_pkgname}.desktop ${pkgdir}/usr/share/applications/${_pkgname}.desktop | |
cd $srcdir/$pkgname | |
install -dm755 ${pkgdir}/usr/share/icons/hicolor | |
cp -r icon/* ${pkgdir}/usr/share/icons/hicolor/ | |
# Binaries | |
install -Dm755 build/sielo-browser ${pkgdir}/usr/bin/sielo-browser | |
install -Dm755 build/SNCompiler/sielo-compiler ${pkgdir}/usr/bin/sielo-compiler | |
} | |
# vim set: ts=4 sw=4 et |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment