51

Re: [Collection] Compilation of packages and ports (not in repositories)

Package catgirl

PKGBUILD

# Maintainer (Arch): Sebastian LaVine <mail@smlavine.com>
# Contributor (Arch): lillian rose winter <hi@neko.vg>
# Contributor (Arch): Evan McCarthy <evan@mccarthy.mn>
# Maintainer: Tobias Dausend <throgh@hyperbola.info>

pkgname=catgirl
_pkgver=2.2a
pkgver=2.2.a
pkgrel=1
pkgdesc="TLS-only terminal IRC client"
arch=('i686' 'x86_64')
url='https://git.causal.agency/catgirl/'
license=('GPL-3')
depends=('libressl' 'ncurses')
source=("https://git.causal.agency/${pkgname}/snapshot/${pkgname}-${_pkgver}.tar.gz")
sha512sums=('988750c960630ec8314ebde7b9802f8b6a3087f733359f61f49c4f83cb6e327c03cde9ad88f2cb535d56ead1376cd121a7124c367c90394a6d4d7f80b25e329f')

build() {
  cd "${pkgname}-${_pkgver}"
  ./configure \
    --prefix=/usr \
    --mandir=/usr/share/man
  make all
}

package() {
  cd "${pkgname}-${_pkgver}"
  make DESTDIR="$pkgdir/" install
  install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/$pkgname"
}
Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

52 (edited by Allen123456hello 2026-05-10 11:21:19)

Re: [Collection] Compilation of packages and ports (not in repositories)

Package pkgconf

May be an alternative to pkg-config.

PKGBUILD

# Maintainer: Allen123456hello

pkgname=pkgconf
pkgver=2.5.1
pkgrel=1
pkgdesc="A newer system for managing library compile/link flags"
url="https://github.com/pkgconf/pkgconf"
license=(ISC)
arch=(i686 x86_64)
depends=(glibc)
provides=(pkg-config pkgconfig)
conflicts=(pkg-config)
source=("https://distfiles.ariadne.space/pkgconf/${pkgname}-${pkgver}.tar.xz")
sha512sums=('e654c3a460e5f0f801e8ac43ad9086f397d1da0553186ff05f5f0e18ffdac99fb652fd9b6c0379db4bc8307699699d69bc66d13cc85a4a6b0cd36462f5948a1d')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr --disable-static --docdir=/usr/share/doc/$pkgname-$pkgver 
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
  ln -sv pkgconf "$pkgdir/usr/bin/pkg-config"
  ln -sv pkgconf.1 "$pkgdir/usr/share/man/man1/pkg-config.1"
  install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname"
}

53 (edited by Allen123456hello 2026-05-10 11:21:37)

Re: [Collection] Compilation of packages and ports (not in repositories)

Package linux-libre-lts-api-headers-without-rsync

An alternative way to build kernel api headers (without rsync).

PKGBUILD

# Maintainer: André Silva <emulatorman@hyperbola.info>
# Contributor: Tobias Dausend <throgh@hyperbola.info>
# Contributor (Parabola): Luke Shumaker <lukeshu@sbcglobal.net>
# Maintainer: Allen123456hello

# Based on linux-api-headers package

# toolchain build order: linux-libre-lts-api-headers-without-rsync->glibc->binutils->gcc->binutils->glibc

pkgname=linux-libre-lts-api-headers-without-rsync
_pkgbasever=5.10-gnu1
_pkgver=${_pkgbasever}

_srcname=linux-${_pkgbasever%-*}
pkgver=${_pkgver//-/_}
pkgrel=2
pkgdesc="Kernel headers sanitized for use in userspace"
arch=('i686' 'x86_64')
url="https://www.gnu.org/software/libc"
license=('GPL-2')
provides=('linux-api-headers' 'linux-libre-lts-api-headers')
conflicts=('linux-api-headers' 'linux-libre-lts-api-headers')
replaces=('linux-api-headers')
source=("https://linux-libre.fsfla.org/pub/linux-libre/releases/${_pkgbasever}/linux-libre-${_pkgbasever}.tar.lz"
        "https://linux-libre.fsfla.org/pub/linux-libre/releases/${_pkgbasever}/linux-libre-${_pkgbasever}.tar.lz.sign")
        #"https://linux-libre.fsfla.org/pub/linux-libre/releases/${_pkgver}/patch-${_pkgbasever}-${_pkgver}.lz"
        #"https://linux-libre.fsfla.org/pub/linux-libre/releases/${_pkgver}/patch-${_pkgbasever}-${_pkgver}.lz.sign")
sha512sums=('b16238c8b746bc9b5078c991847909eba268221f945fb55579e99fc9540b88ccfca5d71f4249f4d3795c522570c30477c986f0f4b98c4029cca1235786c7bc52'
            'SKIP')
validpgpkeys=(
              '474402C8C582DAFBE389C427BCB7CF877E7D47A7' # Alexandre Oliva
)

prepare() {
  cd "${srcdir}/${_srcname}"

  # add upstream patch
  if [ "${_pkgbasever}" != "${_pkgver}" ]; then
    patch -p1 -i "${srcdir}/patch-${_pkgbasever}-${_pkgver}"
  fi
}

build() {
  cd "${srcdir}/${_srcname}"

  make mrproper

  make headers
}

package() {
  cd "${srcdir}/${_srcname}"
  # clean-up unnecessary files generated before install
  find usr/include -type f ! -name '*.h' -delete

  install -d "${pkgdir}/usr"
  cp -rv usr/include "${pkgdir}/usr"

  # use headers from libdrm
  rm -r "${pkgdir}"/usr/include/drm
  
  # clean-up unnecessary files generated during install
  find "${pkgdir}" \( -name .install -o -name ..install.cmd \) -delete

  # install license file
  install -dm755 "${pkgdir}/usr/share/licenses/$pkgname"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/$pkgname"
}