Skip to content

Instantly share code, notes, and snippets.

View fislysandi's full-sized avatar

fislysandi

  • HELL
View GitHub Profile
@zinovyev
zinovyev / rpmtoarch
Created November 8, 2018 14:21
Convert rpm package to Archlinux package (makepkg -s command required afterwards)
#!/usr/bin/env ruby
require "fileutils"
class Package
FILTERED_PARTS = %w[rpm x86_64]
INSTALL_SECTIONS = %w[pre_install post_install pre_upgrade
post_upgrade pre_remove post_remove].freeze