Commit 7e478a74 authored by Francesco Marinucci's avatar Francesco Marinucci

[testing] atom: rebuild to fix .desktop file

parent 1b79617c
Pipeline #2704 passed with stages
in 27 minutes and 16 seconds
pkgname=atom
pkgver=1.34.0
pkgrel=1
pkgrel=2
pkgdesc='A hackable text editor for the 21st Century'
arch=('x86_64')
url='https://github.com/atom/atom'
......@@ -18,7 +18,7 @@ sha256sums=('c4c6199e6cce48ebf02757db65011ac5a3e685f46b35d3a9695f600b40f0da8a'
'a6fa960741823a52b2f82684285e26eb84ce54825dc7ed008fdaca974b60957e')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
cd $pkgname-$pkgver
patch -Np1 -i "${srcdir}"/fix-license-path.patch
patch -Np1 -i "${srcdir}"/fix-restart.patch
......@@ -46,8 +46,8 @@ prepare() {
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
cd $pkgname-$pkgver
export PYTHON=/usr/bin/python2
export ATOM_RESOURCE_PATH="$srcdir/atom-$pkgver"
# If unset, ~/.atom/.node-gyp/.atom/.npm is used
......@@ -68,7 +68,7 @@ build() {
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
cd $pkgname-$pkgver
install -d -m 755 "${pkgdir}"/usr/share/atom
cp -r out/atom-$pkgver-amd64/* "${pkgdir}"/usr/share/atom
......@@ -77,9 +77,10 @@ package() {
install -d -m 755 "${pkgdir}/usr/share/applications"
sed -e "s|<%= appName %>|Atom|" \
-e "s/<%= description %>/${pkgdesc}/" \
-e "s|<%= installDir %>/share/<%= appFileName %>/atom|/usr/bin/atom|" \
-e "s|<%= installDir %>|/usr|" \
-e "s|<%= appFileName %>|atom|" \
-e "s|<%= iconPath %>|atom|" \
resources/linux/atom.desktop.in > "${pkgdir}/usr/share/applications/atom.desktop"
resources/linux/atom.desktop.in > "${pkgdir}/usr/share/applications/atom.desktop"
msg "installing icons"
for size in 16 24 32 48 64 128 256 512 1024; do
......
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