[Dev] [GMID] Package update

Wael Karram wael at waelk.tech
Fri Nov 4 18:37:59 GMT 2022


Hello,
Upstream published a new version a few days ago, I've attached the updated
PKGBUILD.

-- 
Kind Regards,
Wael Karram.


-------------- next part --------------
# Maintainer (aur): Andrea Feletto <andrea at andreafeletto.com>
# Maintainer: Wael Karram <wael at waelk.tech>
# Contributor: bill-auger <bill-auger at programmer.net>


# parabola changes and rationale:
# - delete unlicensed files
# - add openrc service files


pkgname=gmid
pkgver=1.8.5
pkgrel=1
pkgdesc='Fast Gemini server written with security in mind.'
arch=('x86_64')
arch+=('i686' 'armv7h')
url='https://gmid.omarpolo.com'
license=('custom:ISC')
install=${pkgname}.install
backup=(etc/conf.d/${pkgname}
        etc/${pkgname}.conf)
depends=('libretls' 'libevent')
mksource=(https://github.com/omar-polo/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz)
source=(
	https://repo.parabola.nu/other/${pkgname}-libre/${pkgname}-libre-${pkgver}.tar.xz{,.sig}
	"gmid.service"
	"gmid.sysusers"
	"gmid.confd"
	"gmid.initd"
	"gmid.conf"
	"index.gmi"
)
mksha256sums=('c5fd6e5bb411a7baafe0b12b2e2bff35ea47231eff803c00c94e78f2bec3f82c')
sha256sums=(
	'bbdf37162add9be254dfd857f69595b5fe882a8a30647d62e7a030c2e2c87c5c'
	'SKIP'
	'946de0766343225068a0e3f38cb39a4a93ef312525dd775226b938cd08706b94'
	'4d943727a57dbf5f246963c0f90ccc54919cc2296538457e6b16f29f7580d9d6'
	'eddbe93741d01077426bc0239db42815c75a0da5191b4e6528df60ae3e0e5bb3'
	'f396c7db961c45ddb8e48acf42708b3faf9df2a3eaa56f30d9e64d4de0971e88'
	'7acf491fee5f2693b30666b1f2c6eb0a4db33e9ef3154e1cbfb62186c6fa7be6'
	'361cd4ef2b47437b0f5729d56d0ef88851e56812ab88546c82cda0092fe86139'
)
validpgpkeys=('3954A7AB837D0EA9CFA9798925DB7D9B5A8D4B40') # bill-auger


# NOTE: The files removed in mksource() are not actually present in this release
#       However, mksource() is retained for now,
#       because it is not certain that the files will be absent in the next release;
#       or perhaps their omission from this release was a happy accident.
mksource() {
	cd "$srcdir/$pkgname-$pkgver"

	# Remove unlicensed files
	local nonfree_files=( contrib site )
	for nonfree_file in "${nonfree_files[@]}"
	do if [[ -d ${nonfree_file} ]]
		then
			rm -r ${nonfree_file}
		else
			echo "cannot delete '${nonfree_file}' - mksource() needs re-working"
			return 1
		fi
	done
}

build() {
	cd "$srcdir/$pkgname-$pkgver"

	MANDIR='usr/share/man/' ./configure --prefix='usr/'
	make
}

package() {
	cd "$srcdir"

	# Install the config and service files.
	install -Dm644 gmid.service -t "$pkgdir/usr/lib/systemd/system"
	install -Dm644 gmid.sysusers -t "$pkgdir/usr/lib/sysusers.d"
	install -Dm644 gmid.confd "$pkgdir/etc/conf.d/gmid"
	install -Dm755 gmid.initd "$pkgdir/etc/init.d/gmid"
	install -Dm644 gmid.conf "$pkgdir/etc/gmid.conf"

	# Install the program files.
	cd "$srcdir/$pkgname-$pkgver"
	make DESTDIR="$pkgdir/" install

	# Install the documentation files.
	install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
	install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
	install -Dm644 ../index.gmi "$pkgdir/usr/share/doc/$pkgname/index.gmi"
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://lists.parabola.nu/pipermail/dev/attachments/20221104/8eca4a36/attachment.sig>


More information about the Dev mailing list