blob: d10171382be3a9a4dbfaf1798a81c28c73df2ed4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Maintainer: Michał Wojdyła < micwoj9292 at gmail dot com >
# Contributor: peeweep <peeweep at 0x0 dot ee>
# Contributor: Modelmat <modelmat@outlook.com.au>
# Contributor: Paul Oppenheimer <redg3ar@airmail.cc>
# Contributor: David Naramski <david.naramski@gmail.com>
pkgname=ao-git
_pkgname=ao
pkgver=6.9.0.r13.g86ceea6
_pkgver=${pkgver%%.r*}
pkgrel=2
pkgdesc="An Electron wrapper for Microsoft To-Do"
arch=('x86_64')
url="https://github.com/klaussinani/ao"
license=('MIT')
depends=(dbus expat libxtst cairo alsa-lib libglvnd pango gtk3 glib2 libxcb libxext libxdamage libxi libxcursor nss libxcomposite util-linux-libs nspr libcups glibc at-spi2-core gdk-pixbuf2 libxfixes libxrender libxss gcc-libs libx11 libxrandr)
makedepends=('git' 'npm' 'libxcrypt-compat')
provides=('ao')
conflicts=('ao')
source=(git+${url}.git)
md5sums=('SKIP')
pkgver() {
cd ${_pkgname}
git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd ${_pkgname}
npm install
npx electron-builder --linux deb
}
package() {
bsdtar -xf "${srcdir}/ao/dist/${_pkgname}_${_pkgver}_amd64.deb" \
-C "${srcdir}" --include data.tar.xz
tar xfJ ${srcdir}/data.tar.xz -C ${pkgdir}
install -d ${pkgdir}/usr/bin/
ln -s /opt/Ao/ao ${pkgdir}/usr/bin/${_pkgname}
install -Dm 644 "${pkgdir}/usr/share/icons/hicolor/0x0/apps/ao.png" \
"${pkgdir}/usr/share/pixmaps/${_pkgname}.png"
rm -rfv "${pkgdir}/usr/share/icons/hicolor"
}
|