* add gtk2-compat

This commit is contained in:
Alexander Baldeck 2024-09-11 17:48:19 +02:00
parent f4c6f76c4b
commit 9118a5860f
2 changed files with 44 additions and 0 deletions

14
gtk2-compat/.SRCINFO Normal file
View File

@ -0,0 +1,14 @@
pkgbase = gtk2-compat
pkgdesc = Simulates the presence of GTK+2, but tries to use GTK+3
pkgver = 1.0.0
pkgrel = 5
url = https://github.com/openSUSE/gtk2-compat
arch = any
license = GPL2
makedepends = git
depends = gtk3
conflicts = gtk2
source = git+https://github.com/openSUSE/gtk2-compat#commit=24913dc1b4ec13b870e87399fda1ae050f1d4eee
b2sums = SKIP
pkgname = gtk2-compat

30
gtk2-compat/PKGBUILD Normal file
View File

@ -0,0 +1,30 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Alexander <xyproto@archlinux.org>
pkgname=gtk2-compat
pkgver=1.0.0
pkgrel=5
pkgdesc='Simulates the presence of GTK+2, but tries to use GTK+3'
arch=(any)
url='https://github.com/openSUSE/gtk2-compat'
license=(GPL2)
depends=(gtk3)
conflicts=(gtk2)
makedepends=(git)
source=("git+$url#commit=24913dc1b4ec13b870e87399fda1ae050f1d4eee") # no tags available, this is master from 2015-03-11
b2sums=(SKIP)
prepare() {
cd $pkgname
autoreconf -fiv
}
build() {
cd $pkgname
./configure --prefix=/usr
make
}
package() {
DESTDIR="$pkgdir" make -C $pkgname install
}