Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/.SRCINFO b/.SRCINFO
- index 1585a9b..1b8a1c1 100644
- --- a/.SRCINFO
- +++ b/.SRCINFO
- @@ -1,14 +1,21 @@
- pkgbase = gargoyle-git
- pkgdesc = Interactive Fiction multi-interpreter that supports all major IF formats (development version)
- - pkgver = 2022.1.r563.gbde657b4
- + pkgver = 2022.1.r691.g46c97ec5
- pkgrel = 1
- url = https://github.com/garglk/garglk
- install = gargoyle-git.install
- arch = i686
- arch = x86_64
- arch = armv6h
- - groups = inform
- - license = GPL
- + arch = armv7h
- + arch = aarch64
- + license = GPL2
- + license = GPL3
- + license = custom:BSD-2-Clause
- + license = custom:BSD-3-Clause
- + license = Artistic2.0
- + license = MIT
- + license = custom:OFL-1.1
- makedepends = cmake
- makedepends = pkgconfig
- makedepends = desktop-file-utils
- @@ -17,19 +24,20 @@ pkgbase = gargoyle-git
- depends = sdl2_mixer
- depends = sdl2
- depends = freetype2
- - depends = qt5-base
- + depends = qt6-base
- depends = fontconfig
- depends = libjpeg
- depends = libpng
- + depends = zlib
- + depends = hicolor-icon-theme
- optdepends = speech-dispatcher: text-to-speech support
- - provides = gargoyle-git
- + provides = gargoyle
- conflicts = gargoyle-mod
- conflicts = gargoyle
- replaces = gargoyle-mod
- replaces = gargoyle
- + backup = etc/garglk.ini
- source = gargoyle-git::git+https://github.com/garglk/garglk.git
- - source = gargoyle-git.install
- sha512sums = SKIP
- - sha512sums = 1fa602865745c1c9801178ee9b24be86215f2af4f9ee3f4f3b3c0606a87aba32a67c9c5343b481332c8fc97ff6c1a5e447f074d116c0cc5b255af35098096e6e
- pkgname = gargoyle-git
- diff --git a/PKGBUILD b/PKGBUILD
- index b564a7d..cee12c8 100644
- --- a/PKGBUILD
- +++ b/PKGBUILD
- @@ -4,37 +4,69 @@
- # Michael Smith <michael at diglumi dot com>
- # Marcin Skory <armitage at q84fh dot net>
- # with Contribution of Eric Forgeot < http://ifiction.free.fr >
- +
- pkgname=gargoyle-git
- -pkgver=2022.1.r563.gbde657b4
- +pkgver=2022.1.r691.g46c97ec5
- pkgrel=1
- pkgdesc="Interactive Fiction multi-interpreter that supports all major IF formats (development version)"
- -arch=('i686' 'x86_64' 'armv6h')
- +arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
- url="https://github.com/garglk/garglk"
- -license=('GPL')
- -depends=('sdl2_mixer' 'sdl2' 'freetype2' 'qt5-base' 'fontconfig' 'libjpeg' 'libpng')
- +license=('GPL2' 'GPL3' 'custom:BSD-2-Clause' 'custom:BSD-3-Clause' 'Artistic2.0'
- + 'MIT' 'custom:OFL-1.1')
- +depends=('sdl2_mixer' 'sdl2' 'freetype2' 'qt6-base' 'fontconfig' 'libjpeg'
- + 'libpng' 'zlib' 'hicolor-icon-theme')
- makedepends=('cmake' 'pkgconfig' 'desktop-file-utils' 'git' 'fmt')
- optdepends=('speech-dispatcher: text-to-speech support')
- -provides=('gargoyle-git')
- +provides=('gargoyle')
- conflicts=('gargoyle-mod' 'gargoyle')
- replaces=('gargoyle-mod' 'gargoyle')
- -groups=(inform)
- -source=("$pkgname::git+https://github.com/garglk/garglk.git" "gargoyle-git.install")
- -install=${pkgname}.install
- -sha512sums=('SKIP'
- - '1fa602865745c1c9801178ee9b24be86215f2af4f9ee3f4f3b3c0606a87aba32a67c9c5343b481332c8fc97ff6c1a5e447f074d116c0cc5b255af35098096e6e')
- +backup=('etc/garglk.ini')
- +# groups=(inform)
- +install=$pkgname.install
- +source=("$pkgname"::'git+https://github.com/garglk/garglk.git')
- +sha512sums=('SKIP')
- pkgver() {
- - cd "$pkgname"
- - git describe --long --tags | sed 's/\([^-]*-g\)/r/;s/-/./g'
- + cd "$srcdir/$pkgname"
- + if git describe --long --tags >/dev/null 2>&1; then
- + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r/;s/-/./g'
- + else
- + printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git describe --always)"
- + fi
- }
- build() {
- - cmake -S "${pkgname}" -B "build" -DWITH_TTS=DYNAMIC -DCMAKE_INSTALL_PREFIX="${pkgdir}/usr"
- - cmake --build "build"
- + cd "$srcdir/$pkgname"
- +
- + # Extract the license for Git from the readme
- + sed -n '/Copyright (c)/,/DEALINGS IN THE SOFTWARE\./p' \
- + terps/git/README.txt > terps/git/LICENSE
- +
- + cmake -S . -B build \
- + -DCMAKE_BUILD_TYPE=Release \
- + -DWITH_QT6=true \
- + -DWITH_TTS=DYNAMIC \
- + -DCMAKE_INSTALL_LIBEXECDIR=lib \
- + -DCMAKE_INSTALL_PREFIX=/usr
- + cmake --build build
- }
- package() {
- - cmake --install "build"
- - # Install default config
- - install -Dm755 "$srcdir/${pkgname}/garglk/garglk.ini" "$pkgdir/etc/garglk.ini"
- + cd "$srcdir/$pkgname"
- + DESTDIR="$pkgdir" cmake --install build
- +
- + # Install default config
- + install -Dm644 "$srcdir/$pkgname/garglk/garglk.ini" -t "$pkgdir/etc/"
- +
- + # Install licenses
- + local license_dir="$pkgdir/usr/share/licenses/$pkgname"
- + install -Dm644 "$srcdir/$pkgname/License.txt" "$license_dir/LICENSE"
- + install -Dm644 "$srcdir/$pkgname/licenses/BSD-2-Clause.txt" "$license_dir/BSD-2-Clause.txt"
- + install -Dm644 "$srcdir/$pkgname/licenses/Go Mono.txt" "$license_dir/BSD-3-Clause-Go-Mono.txt"
- + install -Dm644 "$srcdir/$pkgname/terps/advsys/LICENSE" "$license_dir/BSD-3-Clause-AdvSys.txt"
- + install -Dm644 "$srcdir/$pkgname/terps/git/LICENSE" "$license_dir/MIT-Git.txt"
- + install -Dm644 "$srcdir/$pkgname/terps/glulxe/LICENSE" "$license_dir/MIT-Glulxe.txt"
- + install -Dm644 "$srcdir/$pkgname/licenses/Charis SIL.txt" "$license_dir/OFL-1.1.txt"
- }
- +
- +# vim: set ts=4 sw=4 et :
- diff --git a/gargoyle-git.install b/gargoyle-git.install
- index 2fa8b37..c5bbe36 100644
- --- a/gargoyle-git.install
- +++ b/gargoyle-git.install
- @@ -1,10 +1,10 @@
- post_install() {
- - update-mime-database usr/share/mime > /dev/null
- - update-desktop-database -q
- + update-mime-database usr/share/mime >/dev/null
- + update-desktop-database -q
- }
- post_upgrade() {
- - post_install
- + post_install
- }
- post_remove() {
- - post_install
- + post_install
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement