Skip to content

Commit 5c8cdd2

Browse files
committed
Paketleme sistemleri için düzenleme
1 parent 8c9affb commit 5c8cdd2

3 files changed

Lines changed: 33 additions & 8 deletions

File tree

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ localedir = ${prefix}/share/locale
77

88
INSTALL = /usr/bin/install -c
99
UNINSTALL = rm -f
10+
MKDIR = mkdir -p
1011

1112
PO_FILES = i18n/tr.po
1213

@@ -16,7 +17,13 @@ i18n: $(PO_FILES:po=mo)
1617
%.mo: %.po
1718
msgfmt $< -o $@
1819

19-
install:
20+
makedir:
21+
test -d "$(DESTDIR)${bindir}" || $(MKDIR) "$(DESTDIR)${bindir}"
22+
test -d "$(DESTDIR)${mandir}/man1" || $(MKDIR) "$(DESTDIR)${mandir}/man1"
23+
test -d "$(DESTDIR)${mandir}/tr/man1" || $(MKDIR) "$(DESTDIR)${mandir}/tr/man1"
24+
test -d "$(DESTDIR)${localedir}/tr/LC_MESSAGES" || $(MKDIR) "$(DESTDIR)${localedir}/tr/LC_MESSAGES"
25+
26+
install: makedir
2027
$(INSTALL) -m 755 src/bootableusb \
2128
"$(DESTDIR)$(bindir)/bootableusb"
2229
$(INSTALL) -m 644 man/bootableusb.1.en \

archlinux/PKGBUILD

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Maintainer: bugra9 <bugra9@gmail.com>
2+
3+
pkgname=bootableusb
4+
pkgver=0.3
5+
pkgrel=1
6+
pkgdesc="Create bootable usb drives"
7+
arch=('i686' 'x86_64')
8+
url="https://github.com/bugra9/BootableUSB"
9+
license=('GPL3')
10+
groups=()
11+
depends=()
12+
makedepends=()
13+
optdepends=()
14+
source=("bootableusb::git+https://github.com/bugra9/BootableUSB.git")
15+
md5sums=('SKIP')
16+
17+
build() {
18+
cd bootableusb
19+
make
20+
}
21+
22+
package() {
23+
cd bootableusb
24+
make DESTDIR="$pkgdir" install
25+
}

debian/rules

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,3 @@
2222
# This is example for Cmake (See https://bugs.debian.org/641051 )
2323
#override_dh_auto_configure:
2424
# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
25-
26-
override_dh_auto_install:
27-
mkdir -p debian/bootableusb/usr/bin
28-
mkdir -p debian/bootableusb/usr/share/man/man1
29-
mkdir -p debian/bootableusb/usr/share/man/tr/man1
30-
mkdir -p debian/bootableusb/usr/share/locale/tr/LC_MESSAGES
31-
dh_auto_install

0 commit comments

Comments
 (0)