Skip to content

Commit

Permalink
fix: for Aur package, use PKGBUILD from this repo (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
Heiko Nickerl authored Aug 4, 2021
1 parent de322b8 commit e32dc3c
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/aur.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
name: Aur Publish
name: Publish to Aur

on:
push:
tags:
- "v*"
- 'v*'

jobs:
aur-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Publish AUR package
uses: ATiltedTree/create-aur-release@v1
uses: KSXGitHub/github-actions-deploy-aur@v2.2.5
with:
package_name: sodalite
pkgname: sodalite
pkgbuild: packaging/aur/PKGBUILD
commit_username: "Heiko Nickerl"
commit_email: "dev@hnicke.de"
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
commit_message: Update AUR package
48 changes: 48 additions & 0 deletions packaging/aur/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Maintainer: Heiko Nickerl <dev at hnicke dot de>
pkgname=sodalite
pkgver=placeholder
pkgrel=1
pkgdesc="Keyboard-driven terminal file navigator and launcher"
arch=('any')
url="https://www.github.com/hnicke/sodalite"
license=('GPL')
depends=(
'python>=3.9'
'python-binaryornot'
'python-urwid'
'python-yaml'
'python-pyperclip'
'python-pygments'
'python-watchdog'
'python-click'
'python-blinker'
'xdg-utils'
)
source=("https://github.com/hnicke/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('8b7f25cf306cb55a63c3c97588d248ed42e43609a827afc5470c396662686ce0')

_srcdir=$pkgname-$pkgver
build() {
cd $_srcdir
python setup.py build
}


package() {
cd $_srcdir
python setup.py install \
--root="$pkgdir" \
--optimize=1 \
--skip-build

install -Dm644 sodalite.desktop "$pkgdir/usr/share/applications/sodalite.desktop"
install -Dm644 docs/sodalite.1 "$pkgdir/usr/share/man/man1/sodalite.1"
install -Dm644 docs/sodalite-open.1 "$pkgdir/usr/share/man/man1/sodalite-open.1"
install -Dm755 scripts/sodalite-open "$pkgdir/usr/bin/sodalite-open"
install -Dm644 README.md "$pkgdir/usr/share/doc/sodalite/README"
install -Dm644 copyright "$pkgdir/usr/share/doc/sodalite/copyright"
install -Dm644 CHANGELOG.md "$pkgdir/usr/share/doc/sodalite/changelog"
install -Dm644 scripts/shell-integration.sh "$pkgdir/usr/share/sodalite/shell-integration.sh"
install -Dm644 scripts/shell-integration.fish "$pkgdir/usr/share/sodalite/shell-integration.fish"
install -Dm644 sodalite/core/sodalite.conf "$pkgdir/usr/share/sodalite/sodalite.conf"
}

0 comments on commit e32dc3c

Please sign in to comment.