Create a PKGBUILD for putting releases on the AUR
And add the aur directory as a submodule so we can update files directly Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
parent
b0838beb6f
commit
3d78dcd4d0
|
@ -3,3 +3,4 @@
|
|||
*.coverage
|
||||
*.ui~
|
||||
*.txt
|
||||
PKGBUILD
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
[submodule "aur"]
|
||||
path = aur
|
||||
url = ssh://aur@aur.archlinux.org/emmental.git
|
12
Makefile
12
Makefile
|
@ -6,6 +6,11 @@ export EMMENTAL_LIB = ${PREFIX}/lib/emmental
|
|||
export EMMENTAL_BIN = ${PREFIX}/bin
|
||||
export EMMENTAL_SHARE = ${PREFIX}/share
|
||||
|
||||
export EMMENTAL_MAJOR = $(shell grep \^MAJOR lib/version.py | awk -F= '{ gsub(/ /,""); print $$2}')
|
||||
export EMMENTAL_MINOR = $(shell grep \^MINOR lib/version.py | awk -F= '{ gsub(/ /,""); print $$2}')
|
||||
export EMMENTAL_TARGZ = https://git.nowheycreamery.com/anna/emmental/archive/emmental-${EMMENTAL_MAJOR}.${EMMENTAL_MINOR}.tar.gz
|
||||
export EMMENTAL_CSUM = $(shell curl -s ${EMMENTAL_TARGZ} | sha256sum | awk '{print $$1}')
|
||||
|
||||
clean:
|
||||
find . -type d -name __pycache__ -exec rm -r {} \+
|
||||
find data/ -type d -name "Test Album" -exec rm -r {} \+
|
||||
|
@ -22,6 +27,13 @@ uninstall:
|
|||
rm -fv ${EMMENTAL_SHARE}/icons/hicolor/scalable/apps/emmental*.svg
|
||||
rm -fv ${EMMENTAL_SHARE}/applications/emmental.desktop
|
||||
|
||||
.PHONY: pkgbuild
|
||||
pkgbuild:
|
||||
cp data/PKGBUILD aur/
|
||||
sed -i 's|{MAJOR}.{MINOR}|${EMMENTAL_MAJOR}.${EMMENTAL_MINOR}|' aur/PKGBUILD
|
||||
sed -i 's|{SHA256SUM}|${EMMENTAL_CSUM}|' aur/PKGBUILD
|
||||
cd aur && makepkg --printsrcinfo > .SRCINFO
|
||||
|
||||
.PHONY: tests
|
||||
tests:
|
||||
python tools/generate_tracks.py
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 098f91d4310bfaedc9bf9994bf5c1848be464847
|
|
@ -0,0 +1,19 @@
|
|||
# Maintainer: Anna Schumaker <anna@nowheycreamery.com>
|
||||
pkgname=emmental
|
||||
pkgver={MAJOR}.{MINOR}
|
||||
pkgrel=1
|
||||
pkgdesc='The cheesy music player'
|
||||
url='https://www.git.nowheycreamery.com/anna/emmental'
|
||||
arch=('any')
|
||||
license=('GPL3')
|
||||
depends=('python' 'python-gobject' 'python-mutagen' 'python-pyxdg' 'gtk4' 'gstreamer' 'gst-plugins-base')
|
||||
optdepends=('gst-plugins-good' 'gst-plugins-bad' 'gst-plugins-ugly')
|
||||
source=("https://git.nowheycreamery.com/anna/emmental/archive/emmental-$pkgver.tar.gz")
|
||||
sha256sums=({SHA256SUM})
|
||||
|
||||
package() {
|
||||
cd "$pkgname"
|
||||
make PREFIX="$pkgdir/usr" install
|
||||
sed -i "s|$pkgdir||" $pkgdir/usr/bin/emmental
|
||||
sed -i "s|$pkgdir||" $pkgdir/usr/share/applications/emmental.desktop
|
||||
}
|
Loading…
Reference in New Issue