xorgproto/PKGBUILD

36 lines
977 B
Bash
Raw Normal View History

2024-04-15 03:38:49 +08:00
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Future Linux Team <future_linux@163.com>
pkgname=xorgproto
pkgver=2023.2
pkgrel=1
pkgdesc="combined X.Org X11 Protocol headers"
arch=('x86_64')
url="https://xorg.freedesktop.org/"
license=('custom')
makedepends=('util-macros' 'meson')
source=(https://xorg.freedesktop.org/archive/individual/proto/${pkgname}-${pkgver}.tar.xz)
sha256sums=(b61fbc7db82b14ce2dc705ab590efc32b9ad800037113d1973811781d5118c2c)
build() {
cd ${pkgname}-${pkgver}
meson setup build \
--prefix=/usr \
--buildtype=release \
-Dlibdir=/usr/lib64
meson compile -C build
}
package() {
cd ${pkgname}-${pkgver}
meson install -C build --destdir ${pkgdir}
mv ${pkgdir}/usr/share/doc/xorgproto{,-${pkgver}}
}