60 lines
1.6 KiB
Text
60 lines
1.6 KiB
Text
|
# Maintainer: George Tsiamasiotis <gtsiam@windowslive.com>
|
||
|
# Parch Maintainer: Sohrab Behdani <sohrab@parchlinux.com>
|
||
|
|
||
|
pkgname=carburetor
|
||
|
pkgver=5.0.0
|
||
|
pkgrel=1
|
||
|
pkgdesc='Graphical settings app for tractor in GTK'
|
||
|
arch=(any)
|
||
|
url='https://framagit.org/tractor/carburetor'
|
||
|
license=('GPL-3.0-or-later')
|
||
|
|
||
|
depends=(
|
||
|
python
|
||
|
python-gobject
|
||
|
gtk4
|
||
|
libadwaita
|
||
|
tractor
|
||
|
python-pycountry
|
||
|
)
|
||
|
makedepends=(
|
||
|
python-build
|
||
|
python-setuptools
|
||
|
python-installer
|
||
|
python-wheel
|
||
|
)
|
||
|
|
||
|
source=("$pkgname-$pkgver.tar.gz::https://framagit.org/tractor/carburetor/-/archive/main/carburetor-main.tar.gz")
|
||
|
# Since the source is downloaded from the main branch, and the main branch is always changes its better to skip the checksum.
|
||
|
# maybe later i would implement something to overcome this issue.
|
||
|
sha256sums=('SKIP')
|
||
|
|
||
|
|
||
|
build() {
|
||
|
cd "${srcdir}/${pkgname}-main"
|
||
|
meson setup build --prefix=/usr
|
||
|
meson compile -C build
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd "${srcdir}/${pkgname}-main"
|
||
|
|
||
|
DESTDIR="${pkgdir}" meson install -C build
|
||
|
|
||
|
install -Dm644 "build/data/io.frama.tractor.carburetor.desktop" \
|
||
|
"${pkgdir}/usr/share/applications/io.frama.tractor.carburetor.desktop"
|
||
|
|
||
|
install -Dm644 "build/data/io.frama.tractor.carburetor.metainfo.xml" \
|
||
|
"${pkgdir}/usr/share/metainfo/io.frama.tractor.carburetor.metainfo.xml"
|
||
|
|
||
|
for size in 16 24 32 48 64 128 256 scalable; do
|
||
|
if [ -f "build/data/icons/${size}/apps/io.frama.tractor.carburetor.svg" ]; then
|
||
|
install -Dm644 "build/data/icons/${size}/apps/io.frama.tractor.carburetor.svg" \
|
||
|
"${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/io.frama.tractor.carburetor.svg"
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
}
|
||
|
|
||
|
|