mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
✨ update
This commit is contained in:
parent
11948abc8b
commit
c456100576
3 changed files with 21 additions and 34 deletions
5
.SRCINFO
5
.SRCINFO
|
|
@ -3,10 +3,9 @@ pkgbase = project-graph-nightly
|
|||
pkgver = r108.d8c44ba4dfb50fb2031fcef41c099d7322b96ab1
|
||||
pkgrel = 1
|
||||
url = https://github.com/LiRenTech/project-graph
|
||||
install = project-graph-nightly.install
|
||||
arch = x86_64
|
||||
license = mit
|
||||
makedepends = curl
|
||||
makedepends = jq
|
||||
depends = cairo
|
||||
depends = desktop-file-utils
|
||||
depends = gdk-pixbuf2
|
||||
|
|
@ -21,5 +20,7 @@ pkgbase = project-graph-nightly
|
|||
conflicts = project-graph-git
|
||||
options = !strip
|
||||
options = !emptydirs
|
||||
source_x86_64 = https://github.com/LiRenTech/project-graph/releases/download/nightly/Project.Graph_0.0.0-nightly.aaaaaaaaaaaaaaaa_amd64.deb
|
||||
sha256sums_x86_64 = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
|
||||
pkgname = project-graph-nightly
|
||||
|
|
|
|||
37
PKGBUILD
37
PKGBUILD
|
|
@ -8,40 +8,13 @@ arch=('x86_64')
|
|||
url="https://github.com/LiRenTech/project-graph"
|
||||
license=('mit')
|
||||
depends=('cairo' 'desktop-file-utils' 'gdk-pixbuf2' 'glib2' 'gtk3' 'hicolor-icon-theme' 'libsoup' 'pango' 'webkit2gtk')
|
||||
makedepends=('curl' 'jq')
|
||||
options=('!strip' '!emptydirs')
|
||||
provides=('project-graph')
|
||||
conflicts=('project-graph' 'project-graph-git')
|
||||
install=${pkgname}.install
|
||||
source_x86_64=("https://github.com/LiRenTech/project-graph/releases/download/nightly/Project.Graph_0.0.0-nightly.aaaaaaaaaaaaaaaa_amd64.deb")
|
||||
sha256sums_x86_64=('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
|
||||
package() {
|
||||
GITHUB_TOKEN="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"
|
||||
cd "$srcdir"
|
||||
|
||||
# Get all releases with GitHub API
|
||||
curl -s https://api.github.com/repos/LiRenTech/project-graph/releases -H "Authorization: token $GITHUB_TOKEN" | jq -r '.[].tag_name' | while read tag; do
|
||||
# If tag == "nightly", get all assets
|
||||
if [[ $tag == "nightly" ]]; then
|
||||
curl -s https://api.github.com/repos/LiRenTech/project-graph/releases/tags/$tag -H "Authorization: token $GITHUB_TOKEN" | jq -r '.assets[].browser_download_url' | while read url; do
|
||||
# If asset name ends with .deb, download it to ${pkgdir} with curl
|
||||
if [[ $url == *".deb" ]]; then
|
||||
echo "Find artifact: $url"
|
||||
echo "Downloading it to ${pkgdir}/app.deb"
|
||||
curl -L -o app.deb -H "Authorization: token $GITHUB_TOKEN" $url
|
||||
fi
|
||||
done
|
||||
fi
|
||||
done
|
||||
|
||||
# Install deb package
|
||||
dpkg-deb -x *.deb here
|
||||
cd here
|
||||
|
||||
install -Dm755 usr/bin/project-graph "$pkgdir"/usr/bin/project-graph
|
||||
|
||||
# Install desktop file
|
||||
install -Dm644 usr/share/applications/Project\ Graph.desktop "$pkgdir"/usr/share/applications/project-graph.desktop
|
||||
|
||||
# Install icons
|
||||
install -Dm644 usr/share/icons/hicolor/128x128/apps/project-graph.png "$pkgdir"/usr/share/icons/hicolor/128x128/apps/project-graph.png
|
||||
install -Dm644 usr/share/icons/hicolor/256x256@2/apps/project-graph.png "$pkgdir"/usr/share/icons/hicolor/256x256@2/apps/project-graph.png
|
||||
install -Dm644 usr/share/icons/hicolor/32x32/apps/project-graph.png "$pkgdir"/usr/share/icons/hicolor/32x32/apps/project-graph.png
|
||||
# Extract package data
|
||||
tar -xz -f data.tar.gz -C "${pkgdir}"
|
||||
}
|
||||
13
project-graph-nightly.install
Normal file
13
project-graph-nightly.install
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
post_install() {
|
||||
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
|
||||
update-desktop-database -q
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
|
||||
update-desktop-database -q
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue